diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2014-04-23 04:33:11 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2014-04-23 04:33:11 +0000 |
commit | 3115ac5ff654b08b13be6e6433fabd12ab0aee14 (patch) | |
tree | 59d558504efeeec6b970991a8d16220b4bbc7234 | |
parent | 07aa63a69ad8ca3a59ee20c6f69b0972efea63a3 (diff) |
Make sure ret->name is NULL'ed before return when freeing.
from Dirk Engling <erdgeist@erdgeist.org>
-rw-r--r-- | lib/libssl/src/crypto/asn1/x_x509.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libssl/src/crypto/asn1/x_x509.c b/lib/libssl/src/crypto/asn1/x_x509.c index e7d613e20f5..e93d97d2c41 100644 --- a/lib/libssl/src/crypto/asn1/x_x509.c +++ b/lib/libssl/src/crypto/asn1/x_x509.c @@ -125,6 +125,7 @@ x509_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg) #endif if (ret->name != NULL) free(ret->name); + ret->name = NULL; break; } |