summaryrefslogtreecommitdiff
path: root/thirdparty/openssl/crypto/dsa/dsa_ameth.c
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/openssl/crypto/dsa/dsa_ameth.c')
-rw-r--r--thirdparty/openssl/crypto/dsa/dsa_ameth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thirdparty/openssl/crypto/dsa/dsa_ameth.c b/thirdparty/openssl/crypto/dsa/dsa_ameth.c
index cc83d6e6ad..c4fa105747 100644
--- a/thirdparty/openssl/crypto/dsa/dsa_ameth.c
+++ b/thirdparty/openssl/crypto/dsa/dsa_ameth.c
@@ -350,7 +350,7 @@ static int dsa_missing_parameters(const EVP_PKEY *pkey)
{
DSA *dsa;
dsa = pkey->pkey.dsa;
- if ((dsa->p == NULL) || (dsa->q == NULL) || (dsa->g == NULL))
+ if (dsa == NULL || dsa->p == NULL || dsa->q == NULL || dsa->g == NULL)
return 1;
return 0;
}