From: Pascal Cuoq Date: Wed, 6 May 2015 08:15:28 +0000 (+0200) Subject: Don't check pointer we just freed, always set it to NULL. X-Git-Tag: OpenSSL_1_1_0-pre1~452 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=8314146ac57059f6d4095ef23e30ccdeb4699938 Don't check pointer we just freed, always set it to NULL. Signed-off-by: Kurt Roeckx Reviewed-by: Rich Salz MR #1231 --- 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; }