Don't try to set pmd if it is NULL.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 1 Feb 2011 19:15:12 +0000 (19:15 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 1 Feb 2011 19:15:12 +0000 (19:15 +0000)
fips/dsa/fips_dssvs.c

index 47da346..b9e0f8d 100644 (file)
@@ -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;