From: Dr. Stephen Henson Date: Thu, 1 Oct 2009 00:22:23 +0000 (+0000) Subject: PR: 2062 X-Git-Tag: OpenSSL_0_9_8m-beta1~93 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ae37f9f3a224ee9a6f2f14882df7c5ca361cc955;p=oweals%2Fopenssl.git PR: 2062 Submitted by: Julia Lawall Approved by: steve@openssl.org Correct BN_rand error handling in bntest.c --- 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)