summaryrefslogtreecommitdiff
path: root/thirdparty/openssl/crypto/dh/dh_ameth.c
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/openssl/crypto/dh/dh_ameth.c')
-rw-r--r--thirdparty/openssl/crypto/dh/dh_ameth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thirdparty/openssl/crypto/dh/dh_ameth.c b/thirdparty/openssl/crypto/dh/dh_ameth.c
index ac72468bd1..4558283576 100644
--- a/thirdparty/openssl/crypto/dh/dh_ameth.c
+++ b/thirdparty/openssl/crypto/dh/dh_ameth.c
@@ -519,7 +519,7 @@ static int dh_copy_parameters(EVP_PKEY *to, const EVP_PKEY *from)
static int dh_missing_parameters(const EVP_PKEY *a)
{
- if (!a->pkey.dh->p || !a->pkey.dh->g)
+ if (a->pkey.dh == NULL || a->pkey.dh->p == NULL || a->pkey.dh->g == NULL)
return 1;
return 0;
}