From e8a682f223724f6be3927ed9774842d831e1bc8c Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Thu, 1 Oct 2009 00:21:20 +0000 Subject: [PATCH] PR: 2062 Submitted by: Julia Lawall Approved by: steve@openssl.org Correct BN_rand error handling in bntest.c --- crypto/bn/bntest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.25.1