projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
free NULL cleanup 8
[openssl.git]
/
crypto
/
asn1
/
tasn_scn.c
diff --git
a/crypto/asn1/tasn_scn.c
b/crypto/asn1/tasn_scn.c
index cedea9cb78e378cb135472f6a7745bf61ad731c9..830540550e22dc7d5d9b68d051635d7f93d41de7 100644
(file)
--- a/
crypto/asn1/tasn_scn.c
+++ b/
crypto/asn1/tasn_scn.c
@@
-86,7
+86,8
@@
ASN1_SCTX *ASN1_SCTX_new(int (*scan_cb) (ASN1_SCTX *ctx))
void ASN1_SCTX_free(ASN1_SCTX *p)
{
- OPENSSL_free(p);
+ if (p)
+ OPENSSL_free(p);
}
const ASN1_ITEM *ASN1_SCTX_get_item(ASN1_SCTX *p)