mirror of https://github.com/openssl/openssl.git
Fix the recently introduced test that checks if the result is 0
This commit is contained in:
parent
f9b3bff6f7
commit
12cfcc128c
|
|
@ -176,7 +176,7 @@ int BN_mod_exp2_mont(BIGNUM *rr, const BIGNUM *a1, const BIGNUM *p1,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
a_mod_m = a1;
|
a_mod_m = a1;
|
||||||
if (BN_is_zero(&(val1[0])))
|
if (BN_is_zero(a_mod_m))
|
||||||
{
|
{
|
||||||
ret = BN_zero(rr);
|
ret = BN_zero(rr);
|
||||||
goto err;
|
goto err;
|
||||||
|
|
@ -211,7 +211,7 @@ int BN_mod_exp2_mont(BIGNUM *rr, const BIGNUM *a1, const BIGNUM *p1,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
a_mod_m = a2;
|
a_mod_m = a2;
|
||||||
if (BN_is_zero(&(val2[0])))
|
if (BN_is_zero(a_mod_m))
|
||||||
{
|
{
|
||||||
ret = BN_zero(rr);
|
ret = BN_zero(rr);
|
||||||
goto err;
|
goto err;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue