projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95d66bd
)
PR: 2062
author
Dr. Stephen Henson
<steve@openssl.org>
Thu, 1 Oct 2009 00:22:23 +0000
(
00:22
+0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Thu, 1 Oct 2009 00:22:23 +0000
(
00:22
+0000)
Submitted by: Julia Lawall <julia@diku.dk>
Approved by: steve@openssl.org
Correct BN_rand error handling in bntest.c
crypto/bn/bntest.c
patch
|
blob
|
history
diff --git
a/crypto/bn/bntest.c
b/crypto/bn/bntest.c
index cf190380f558972bc0fe4f2b9ea0aebce2cdf726..d41daac5fedb06b6f6641bd26ee20a4b8bf9b495 100644
(file)
--- 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)