diff options
author | Richard Levitte <levitte@openssl.org> | 2001-09-24 13:39:48 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2001-09-24 13:39:48 +0000 |
commit | 98c2a26ea61a4b48bdc7b4d3b25f5044194bab7c (patch) | |
tree | 502ab77e752e0bba9856644cfec788a3ba9c9162 /crypto/err | |
parent | 965b6dad4497ea5cd9a988ccb641996b393af9b3 (diff) | |
download | openssl-98c2a26ea61a4b48bdc7b4d3b25f5044194bab7c.tar.gz |
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>.
Diffstat (limited to 'crypto/err')
-rw-r--r-- | crypto/err/err.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |