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
This commit is contained in:
parent
c804d23d73
commit
8314146ac5
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue