Commit a1a5885b authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

Free keys if DSA pairwise error.

parent f84a8ea5
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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))
#endif
		{
		dsa->pub_key = NULL;
		dsa->priv_key = NULL;
	    	goto err;
		}
#endif
	ok=1;

err: