Просмотр исходного кода

Fix leak in error path in nss encryption.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2857 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 15 лет назад
Родитель
Сommit
d209f7bb27
1 измененных файлов с 2 добавлено и 1 удалено
  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);
 	}
 
 	/*