X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fbn%2Fbntest.c;h=d41daac5fedb06b6f6641bd26ee20a4b8bf9b495;hb=ae37f9f3a224ee9a6f2f14882df7c5ca361cc955;hp=310763eca0c6acd2a3310e2466655a7e20ebab4d;hpb=14346b34561357a48ec94cad0f3788cd6fe83b71;p=oweals%2Fopenssl.git diff --git a/crypto/bn/bntest.c b/crypto/bn/bntest.c index 310763eca0..d41daac5fe 100644 --- a/crypto/bn/bntest.c +++ b/crypto/bn/bntest.c @@ -926,7 +926,7 @@ int test_mod_exp(BIO *bp, BN_CTX *ctx) BN_bntest_rand(b,2+i,0,0); /**/ if (!BN_mod_exp(d,a,b,c,ctx)) - return(00); + return(0); if (bp != NULL) { @@ -1027,8 +1027,8 @@ 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)) - return(00); + if (BN_exp(d,a,b,ctx) <= 0) + return(0); if (bp != NULL) {