X509_VERIFY_PARAM_free: Check param for NULL
Reviewed-by: Viktor Dukhovni <openssl-users@dukhovni.org> (cherry picked from commit f49baeff50d0be9c8d86aed6fb4a08841aa3da41)
This commit is contained in:
parent
bd41063b11
commit
10473a5a2c
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user