X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fbn%2Fbn_exp2.c;h=73ccd58a83aa1f1c9f4a6bc8313b69ed7d4ebb05;hb=91b3f0e691aa68daaaf137de2913b21260f94a05;hp=4b41dae07896ccf0f844b03839e0651e67b830ff;hpb=73c2522c7ce821f2c837b58eec7780fb43aa7d4f;p=oweals%2Fopenssl.git 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;