aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/bn/bn_exp2.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2000-11-30 22:58:27 +0000
committerBodo Möller <bodo@openssl.org>2000-11-30 22:58:27 +0000
commit12cfcc128cbf1a5c6b9806ff39368f0d3c6be138 (patch)
tree21fd6c7edecd3bcb89b355a033984d47c76bf3d5 /crypto/bn/bn_exp2.c
parentf9b3bff6f7e38960bb87a5623fbcbc45ee952c49 (diff)
downloadopenssl-12cfcc128cbf1a5c6b9806ff39368f0d3c6be138.tar.gz
Fix the recently introduced test that checks if the result is 0
Diffstat (limited to 'crypto/bn/bn_exp2.c')
-rw-r--r--crypto/bn/bn_exp2.c4
1 files changed, 2 insertions, 2 deletions
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;