From: František Bořánek Date: Thu, 29 May 2014 12:49:10 +0000 (+0100) Subject: Fix memory leak. X-Git-Tag: OpenSSL_0_9_8za~14 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=492a5010a4464f1dd1196431f4999e9163ea9e8c;p=oweals%2Fopenssl.git Fix memory leak. PR#3278 (cherry picked from commit de56fe797081fc09ebd1add06d6e2df42a324fd5) --- diff --git a/crypto/pkcs12/p12_kiss.c b/crypto/pkcs12/p12_kiss.c index 5c4c6ec988..bdbbbecf34 100644 --- a/crypto/pkcs12/p12_kiss.c +++ b/crypto/pkcs12/p12_kiss.c @@ -261,7 +261,7 @@ static int parse_bag(PKCS12_SAFEBAG *bag, const char *pass, int passlen, int len, r; unsigned char *data; len = ASN1_STRING_to_UTF8(&data, fname); - if(len > 0) { + if(len >= 0) { r = X509_alias_set1(x509, data, len); OPENSSL_free(data); if (!r)