aboutsummaryrefslogtreecommitdiff
path: root/openssl/crypto/x509/x509_vpm.c
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/crypto/x509/x509_vpm.c')
-rw-r--r--openssl/crypto/x509/x509_vpm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openssl/crypto/x509/x509_vpm.c b/openssl/crypto/x509/x509_vpm.c
index dfd89d89f..ba546bd1f 100644
--- a/openssl/crypto/x509/x509_vpm.c
+++ b/openssl/crypto/x509/x509_vpm.c
@@ -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;