diff options
author | Pascal Cuoq <cuoq@trust-in-soft.com> | 2015-05-06 10:15:28 +0200 |
---|---|---|
committer | Kurt Roeckx <kurt@roeckx.be> | 2015-10-07 18:54:13 +0200 |
commit | 8314146ac57059f6d4095ef23e30ccdeb4699938 (patch) | |
tree | dd31a8bc147c7d95ab5626a2b9a5c7440467184d /crypto/asn1 | |
parent | c804d23d73bb2f3f6ffe29fbda4dd2fa151fa243 (diff) |
Don't check pointer we just freed, always set it to NULL.
Signed-off-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Rich Salz <rsalz@openssl.org>
MR #1231
Diffstat (limited to 'crypto/asn1')
-rw-r--r-- | crypto/asn1/tasn_fre.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/asn1/tasn_fre.c b/crypto/asn1/tasn_fre.c index e219e2c0a3..bd955d9848 100644 --- a/crypto/asn1/tasn_fre.c +++ b/crypto/asn1/tasn_fre.c @@ -249,6 +249,5 @@ void asn1_primitive_free(ASN1_VALUE **pval, const ASN1_ITEM *it) ASN1_STRING_free((ASN1_STRING *)*pval); break; } - if (*pval) - *pval = NULL; + *pval = NULL; } |