aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/err
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2001-09-24 13:39:48 +0000
committerRichard Levitte <levitte@openssl.org>2001-09-24 13:39:48 +0000
commit98c2a26ea61a4b48bdc7b4d3b25f5044194bab7c (patch)
tree502ab77e752e0bba9856644cfec788a3ba9c9162 /crypto/err
parent965b6dad4497ea5cd9a988ccb641996b393af9b3 (diff)
downloadopenssl-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.c3
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);
}