Free keys if DSA pairwise error.

This commit is contained in:
Dr. Stephen Henson 2011-02-11 14:21:01 +00:00
parent f84a8ea526
commit a1a5885b64

View File

@ -162,8 +162,12 @@ static int dsa_builtin_keygen(DSA *dsa)
if (fips_dsa_pairwise_fail)
BN_add_word(dsa->pub_key, 1);
if(!fips_check_dsa(dsa))
{
dsa->pub_key = NULL;
dsa->priv_key = NULL;
goto err;
}
#endif
goto err;
ok=1;
err: