diff options
author | František Bořánek <fboranek@kerio.com> | 2014-05-29 13:49:10 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2014-05-29 14:12:11 +0100 |
commit | 492a5010a4464f1dd1196431f4999e9163ea9e8c (patch) | |
tree | 16e2b03746aac2054413783a2be0b834ffb1dc44 | |
parent | 53b0b0a330d6d7dec22dfd1162b197d5f21a3231 (diff) |
Fix memory leak.
PR#3278
(cherry picked from commit de56fe797081fc09ebd1add06d6e2df42a324fd5)
-rw-r--r-- | crypto/pkcs12/p12_kiss.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |