projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
X509_VERIFY_PARAM_free: Check param for NULL
[openssl.git]
/
crypto
/
x509
/
x509_vpm.c
diff --git
a/crypto/x509/x509_vpm.c
b/crypto/x509/x509_vpm.c
index d0543662c08c92f37809f1992303f6b0b69f782a..6b0bf8a6e69e696424c770af942fe051b2a15f81 100644
(file)
--- a/
crypto/x509/x509_vpm.c
+++ b/
crypto/x509/x509_vpm.c
@@
-100,6
+100,8
@@
X509_VERIFY_PARAM *X509_VERIFY_PARAM_new(void)
void X509_VERIFY_PARAM_free(X509_VERIFY_PARAM *param)
{
+ if (param == NULL)
+ return;
x509_verify_param_zero(param);
OPENSSL_free(param);
}