summaryrefslogtreecommitdiffstats
path: root/crypto/bn
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-10-01 00:21:55 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-10-01 00:21:55 +0000
commit50d70c01d614ae393022c8a3635f3ea662b02311 (patch)
tree411d4f069bacb1472afcd6218eab9b4cecb64133 /crypto/bn
parent9fc601cfbbe7eac457b3628f2455154d59883fa7 (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')
-rw-r--r--crypto/bn/bntest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bn/bntest.c b/crypto/bn/bntest.c
index 14990bc4ff..0cd99c5b4b 100644
--- a/crypto/bn/bntest.c
+++ b/crypto/bn/bntest.c
@@ -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)