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 13:49:50 +0100 |
commit | 5f2b5e38237c28497a9fa1f045bbc08d2ba32b7d (patch) | |
tree | 038ddfe7528b5d4be88b32c14c903a406d774ca2 /crypto/pkcs12/p12_kiss.c | |
parent | 42d73874edb4eb6681b769d9850afebe97adf329 (diff) |
Fix memory leak.
PR#3278
(cherry picked from commit de56fe797081fc09ebd1add06d6e2df42a324fd5)
Diffstat (limited to 'crypto/pkcs12/p12_kiss.c')
-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 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) |