diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-10-01 00:22:23 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-10-01 00:22:23 +0000 |
commit | ae37f9f3a224ee9a6f2f14882df7c5ca361cc955 (patch) | |
tree | b8ad4b0722c9bfa0a3d6d0ceb6f10d148a1cf003 /crypto/bn/bntest.c | |
parent | 95d66bd8672fd3cefef4a98ba743a2c7773591e9 (diff) |
PR: 2062
Submitted by: Julia Lawall <julia@diku.dk>
Approved by: steve@openssl.org
Correct BN_rand error handling in bntest.c
Diffstat (limited to 'crypto/bn/bntest.c')
-rw-r--r-- | crypto/bn/bntest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bn/bntest.c b/crypto/bn/bntest.c index cf190380f5..d41daac5fe 100644 --- a/crypto/bn/bntest.c +++ b/crypto/bn/bntest.c @@ -1027,7 +1027,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) |