diff options
author | Kurt Roeckx <kurt@roeckx.be> | 2015-04-11 17:08:38 +0200 |
---|---|---|
committer | Kurt Roeckx <kurt@roeckx.be> | 2015-04-11 20:29:25 +0200 |
commit | f49baeff50d0be9c8d86aed6fb4a08841aa3da41 (patch) | |
tree | f798e17b29a85b5cef3fc801313e0483c7aab8f1 /crypto | |
parent | 62adbcee392ba1061bf213174e8c59728e00860e (diff) |
X509_VERIFY_PARAM_free: Check param for NULL
Reviewed-by: Viktor Dukhovni <openssl-users@dukhovni.org>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/x509/x509_vpm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/x509/x509_vpm.c b/crypto/x509/x509_vpm.c index 8194cfa341..2c30ff4026 100644 --- a/crypto/x509/x509_vpm.c +++ b/crypto/x509/x509_vpm.c @@ -189,6 +189,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->id); OPENSSL_free(param); |