In case of memory problems, the va_start() wasn't cleaned with a va_end().

Noticed by Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>.
This commit is contained in:
Richard Levitte 2001-09-24 15:06:44 +00:00
parent ae9010abd5
commit 594a3e5bd5

View file

@ -784,7 +784,7 @@ void ERR_add_error_data(int num, ...)
if (p == NULL) if (p == NULL)
{ {
OPENSSL_free(str); OPENSSL_free(str);
return; goto err;
} }
else else
str=p; str=p;
@ -794,6 +794,7 @@ void ERR_add_error_data(int num, ...)
} }
ERR_set_error_data(str,ERR_TXT_MALLOCED|ERR_TXT_STRING); ERR_set_error_data(str,ERR_TXT_MALLOCED|ERR_TXT_STRING);
err:
va_end(args); va_end(args);
} }