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

PR: 2062

Submitted by: Julia Lawall <julia@diku.dk>
Approved by: steve@openssl.org

Correct BN_rand error handling in bntest.c
上级 98fbfff4
...@@ -1029,7 +1029,7 @@ int test_exp(BIO *bp, BN_CTX *ctx) ...@@ -1029,7 +1029,7 @@ int test_exp(BIO *bp, BN_CTX *ctx)
BN_bntest_rand(a,20+i*5,0,0); /**/ BN_bntest_rand(a,20+i*5,0,0); /**/
BN_bntest_rand(b,2+i,0,0); /**/ BN_bntest_rand(b,2+i,0,0); /**/
if (!BN_exp(d,a,b,ctx)) if (BN_exp(d,a,b,ctx) <= 0)
return(0); return(0);
if (bp != NULL) if (bp != NULL)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册