diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-02-01 19:15:12 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-02-01 19:15:12 +0000 |
commit | 96d5997f5b621363aa5901c27cbf28699f8e0ed0 (patch) | |
tree | bf0de7d903585e6d47980697cea8ded74ed408e4 /fips/dsa/fips_dssvs.c | |
parent | 92eb4c551d7433ba1e74e77001dab2e256f8a870 (diff) |
Don't try to set pmd if it is NULL.
Diffstat (limited to 'fips/dsa/fips_dssvs.c')
-rw-r--r-- | fips/dsa/fips_dssvs.c | 3 |
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; |