Fix use of NULL memory pointer in X509_VERIFY_PARAM_new in the event of a
malloc failure. Reviewed-by: Kurt Roeckx <kurt@openssl.org>
This commit is contained in:
parent
b8b9bcb458
commit
c6a84ff351
@ -89,6 +89,8 @@ X509_VERIFY_PARAM *X509_VERIFY_PARAM_new(void)
|
||||
{
|
||||
X509_VERIFY_PARAM *param;
|
||||
param = OPENSSL_malloc(sizeof(X509_VERIFY_PARAM));
|
||||
if (!param)
|
||||
return NULL;
|
||||
memset(param, 0, sizeof(X509_VERIFY_PARAM));
|
||||
x509_verify_param_zero(param);
|
||||
return param;
|
||||
|
Loading…
x
Reference in New Issue
Block a user