From caf4e91a35d67b5db96f4db1589cd29d814ab5f2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Bo=C5=99=C3=A1nek?= Date: Thu, 29 May 2014 13:49:10 +0100 Subject: [PATCH] Fix memory leak. PR#3278 (cherry picked from commit de56fe797081fc09ebd1add06d6e2df42a324fd5) --- crypto/pkcs12/p12_kiss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.25.1