From 96d5997f5b621363aa5901c27cbf28699f8e0ed0 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 1 Feb 2011 19:15:12 +0000 Subject: [PATCH] Don't try to set pmd if it is NULL. --- fips/dsa/fips_dssvs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.34.1