Explorar el Código

Merge trunk revision 2857:
r2857 | sdake | 2010-05-18 22:30:18 -0700 (Tue, 18 May 2010) | 2 lines

Fix leak in error path in nss encryption.



git-svn-id: http://svn.fedorahosted.org/svn/corosync/branches/flatiron@2899 fd59a12c-fef9-0310-b244-a6a79926bd2f

Steven Dake hace 15 años
padre
commit
282cd94993
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      exec/totemudp.c

+ 2 - 1
exec/totemudp.c

@@ -499,7 +499,8 @@ static int encrypt_and_sign_nss (
 		log_printf(instance->totemudp_log_level_security,
 			"Failure to set up PKCS11 param (err %d)\n",
 			PR_GetError());
-		goto out;
+		free (inbuf);
+		return (-1);
 	}
 
 	/*