Don't try to set pmd if it is NULL.

This commit is contained in:
Dr. Stephen Henson 2011-02-01 19:15:12 +00:00
parent 92eb4c551d
commit 96d5997f5b

View 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;