From: Kurt Roeckx Date: Sat, 11 Apr 2015 15:08:38 +0000 (+0200) Subject: X509_VERIFY_PARAM_free: Check param for NULL X-Git-Tag: OpenSSL_1_0_2b~133 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f6cddcccc89bd27c09c2c659c0bdbf40647f6ead;p=oweals%2Fopenssl.git X509_VERIFY_PARAM_free: Check param for NULL Reviewed-by: Viktor Dukhovni (cherry picked from commit f49baeff50d0be9c8d86aed6fb4a08841aa3da41) --- diff --git a/crypto/x509/x509_vpm.c b/crypto/x509/x509_vpm.c index 322239401e..9f7647fac2 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);