projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Accept NULL in *_free.
[openssl.git]
/
crypto
/
asn1
/
p7_lib.c
diff --git
a/crypto/asn1/p7_lib.c
b/crypto/asn1/p7_lib.c
index 06e1da4a742ca9f9df4ebb4bc5e08ceb862ed3f3..4ab64777b3ff4c2e2fc1fd9099943d71f3a3647a 100644
(file)
--- a/
crypto/asn1/p7_lib.c
+++ b/
crypto/asn1/p7_lib.c
@@
-267,6
+267,9
@@
PKCS7 *a;
void PKCS7_content_free(a)
PKCS7 *a;
{
+ if(a == NULL)
+ return;
+
if (a->asn1 != NULL) Free((char *)a->asn1);
if (a->d.ptr != NULL)