From: František Bořánek Date: Thu, 29 May 2014 12:49:10 +0000 (+0100) Subject: Fix memory leak. X-Git-Tag: master-post-reformat~768 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4da0ddc47ea0bed39327d59223f2b79364b313ef;p=oweals%2Fopenssl.git Fix memory leak. PR#3278 --- diff --git a/crypto/pkcs12/p12_kiss.c b/crypto/pkcs12/p12_kiss.c index 206b1b0b18..c9b7ab61d1 100644 --- a/crypto/pkcs12/p12_kiss.c +++ b/crypto/pkcs12/p12_kiss.c @@ -269,7 +269,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)