From: Bodo Möller Date: Thu, 30 Nov 2000 22:58:27 +0000 (+0000) Subject: Fix the recently introduced test that checks if the result is 0 X-Git-Tag: OpenSSL_0_9_6a-beta1~107^2~81 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=12cfcc128cbf1a5c6b9806ff39368f0d3c6be138;ds=sidebyside Fix the recently introduced test that checks if the result is 0 --- diff --git a/crypto/bn/bn_exp2.c b/crypto/bn/bn_exp2.c index 4b41dae078..73ccd58a83 100644 --- a/crypto/bn/bn_exp2.c +++ b/crypto/bn/bn_exp2.c @@ -176,7 +176,7 @@ int BN_mod_exp2_mont(BIGNUM *rr, const BIGNUM *a1, const BIGNUM *p1, } else a_mod_m = a1; - if (BN_is_zero(&(val1[0]))) + if (BN_is_zero(a_mod_m)) { ret = BN_zero(rr); goto err; @@ -211,7 +211,7 @@ int BN_mod_exp2_mont(BIGNUM *rr, const BIGNUM *a1, const BIGNUM *p1, } else a_mod_m = a2; - if (BN_is_zero(&(val2[0]))) + if (BN_is_zero(a_mod_m)) { ret = BN_zero(rr); goto err;