summaryrefslogtreecommitdiffstats
path: root/crypto/bn
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2015-05-20 09:24:36 +0200
committerAndy Polyakov <appro@openssl.org>2015-05-24 21:27:32 +0200
commit0945bfcb22f1df1d89e84973f175a620adab4f0d (patch)
tree5387ffe8c69088de5557ad1c36ec5a1860911644 /crypto/bn
parentf5d840a079d18b3efad7938070b964f82e9bbcaf (diff)
bn/bn_gf2m.c: appease STACK, unstable code detector.
RT#3852 Reviewed-by: Richard Levitte <levitte@openssl.org> (cherry picked from commit 86e5d1e32b2d702a5fc777e612cd746e790098ef)
Diffstat (limited to 'crypto/bn')
-rw-r--r--crypto/bn/bn_gf2m.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/bn/bn_gf2m.c b/crypto/bn/bn_gf2m.c
index aeee49a015..1981f16023 100644
--- a/crypto/bn/bn_gf2m.c
+++ b/crypto/bn/bn_gf2m.c
@@ -450,8 +450,7 @@ int BN_GF2m_mod_arr(BIGNUM *r, const BIGNUM *a, const int p[])
d0 = p[k] % BN_BITS2;
d1 = BN_BITS2 - d0;
z[n] ^= (zz << d0);
- tmp_ulong = zz >> d1;
- if (d0 && tmp_ulong)
+ if (d0 && (tmp_ulong = zz >> d1))
z[n + 1] ^= tmp_ulong;
}