Free keys if DSA pairwise error.
This commit is contained in:
parent
f84a8ea526
commit
a1a5885b64
@ -162,8 +162,12 @@ static int dsa_builtin_keygen(DSA *dsa)
|
|||||||
if (fips_dsa_pairwise_fail)
|
if (fips_dsa_pairwise_fail)
|
||||||
BN_add_word(dsa->pub_key, 1);
|
BN_add_word(dsa->pub_key, 1);
|
||||||
if(!fips_check_dsa(dsa))
|
if(!fips_check_dsa(dsa))
|
||||||
|
{
|
||||||
|
dsa->pub_key = NULL;
|
||||||
|
dsa->priv_key = NULL;
|
||||||
|
goto err;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
goto err;
|
|
||||||
ok=1;
|
ok=1;
|
||||||
|
|
||||||
err:
|
err:
|
||||||
|
Loading…
Reference in New Issue
Block a user