提交 a1a5885b 编写于 作者: D Dr. Stephen Henson

Free keys if DSA pairwise error.

上级 f84a8ea5
...@@ -162,8 +162,12 @@ static int dsa_builtin_keygen(DSA *dsa) ...@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册