Fix the recently introduced test that checks if the result is 0
authorBodo Möller <bodo@openssl.org>
Thu, 30 Nov 2000 22:58:27 +0000 (22:58 +0000)
committerBodo Möller <bodo@openssl.org>
Thu, 30 Nov 2000 22:58:27 +0000 (22:58 +0000)
crypto/bn/bn_exp2.c

index 4b41dae07896ccf0f844b03839e0651e67b830ff..73ccd58a83aa1f1c9f4a6bc8313b69ed7d4ebb05 100644 (file)
@@ -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;