From: Dr. Stephen Henson Date: Tue, 1 Feb 2011 19:15:12 +0000 (+0000) Subject: Don't try to set pmd if it is NULL. X-Git-Tag: OpenSSL-fips-2_0-rc1~812 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=96d5997f5b621363aa5901c27cbf28699f8e0ed0;ds=sidebyside Don't try to set pmd if it is NULL. --- diff --git a/fips/dsa/fips_dssvs.c b/fips/dsa/fips_dssvs.c index 47da3466eb..b9e0f8d0e9 100644 --- a/fips/dsa/fips_dssvs.c +++ b/fips/dsa/fips_dssvs.c @@ -35,7 +35,8 @@ static int parse_mod(char *line, int *pdsa2, int *pL, int *pN, *pL = atoi(line); *pdsa2 = 0; *pN = 160; - *pmd = EVP_sha1(); + if (pmd) + *pmd = EVP_sha1(); return 1; } *pdsa2 = 1;