dh->q might be NULL.

This commit is contained in:
Tomas Mraz 2014-01-07 11:57:56 +01:00
parent 8978637f3b
commit c5b74d70a3
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ diff -up openssl-1.0.1e/crypto/dh/dh_check.c.fips-reqs openssl-1.0.1e/crypto/dh/
if (BN_cmp(pub_key,q)>=0)
*ret|=DH_CHECK_PUBKEY_TOO_LARGE;
+#ifdef OPENSSL_FIPS
+ if (FIPS_mode())
+ if (FIPS_mode() && dh->q != NULL)
+ {
+ BN_CTX *ctx = NULL;