summaryrefslogtreecommitdiffstats
path: root/fips/dsa
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-02-01 19:15:12 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-02-01 19:15:12 +0000
commit96d5997f5b621363aa5901c27cbf28699f8e0ed0 (patch)
treebf0de7d903585e6d47980697cea8ded74ed408e4 /fips/dsa
parent92eb4c551d7433ba1e74e77001dab2e256f8a870 (diff)
Don't try to set pmd if it is NULL.
Diffstat (limited to 'fips/dsa')
-rw-r--r--fips/dsa/fips_dssvs.c3
1 files changed, 2 insertions, 1 deletions
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;