From: Richard Levitte Date: Mon, 24 Sep 2001 13:39:48 +0000 (+0000) Subject: In case of memory problems, the va_start() wasn't cleaned with a va_end(). X-Git-Tag: OpenSSL_0_9_6c~26^2~205 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=98c2a26ea61a4b48bdc7b4d3b25f5044194bab7c;p=oweals%2Fopenssl.git In case of memory problems, the va_start() wasn't cleaned with a va_end(). Noticed by Thomas Klausner . --- diff --git a/crypto/err/err.c b/crypto/err/err.c index 8e329f028b..f38d1a61da 100644 --- a/crypto/err/err.c +++ b/crypto/err/err.c @@ -992,7 +992,7 @@ void ERR_add_error_data(int num, ...) if (p == NULL) { OPENSSL_free(str); - return; + goto err; } else str=p; @@ -1002,5 +1002,6 @@ void ERR_add_error_data(int num, ...) } ERR_set_error_data(str,ERR_TXT_MALLOCED|ERR_TXT_STRING); +err: va_end(args); }