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 47da3466eb2c5247e88b26af4f912986818061d9..b9e0f8d0e9e811a48fdb07dd9b11279ce20664f6 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;
                *pL = atoi(line);
                *pdsa2 = 0;
                *pN = 160;
-               *pmd = EVP_sha1();
+               if (pmd)
+                       *pmd = EVP_sha1();
                return 1;
                }
        *pdsa2 = 1;
                return 1;
                }
        *pdsa2 = 1;