PR: 2062
Submitted by: Julia Lawall <julia@diku.dk> Approved by: steve@openssl.org Correct BN_rand error handling in bntest.c
This commit is contained in:
parent
98fbfff417
commit
e8a682f223
1 changed files with 1 additions and 1 deletions
|
@ -1029,7 +1029,7 @@ int test_exp(BIO *bp, BN_CTX *ctx)
|
|||
BN_bntest_rand(a,20+i*5,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);
|
||||
|
||||
if (bp != NULL)
|
||||
|
|
Loading…
Reference in a new issue