diff options
author | Andy Polyakov <appro@openssl.org> | 2008-10-28 13:48:33 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2008-10-28 13:48:33 +0000 |
commit | 1c4273ae0da5e9e289c924d12296e21afcffc202 (patch) | |
tree | 0096318ee38dc47b0cd73e539b510cd300d3693b | |
parent | 1ba833a42727e25d0a74798e25b425f9ffad45ee (diff) |
Fix crash in BN_rshift [from HEAD].
PR: 1663
-rw-r--r-- | crypto/bn/bn_shift.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bn/bn_shift.c b/crypto/bn/bn_shift.c index de9312dce2..c4d301afc4 100644 --- a/crypto/bn/bn_shift.c +++ b/crypto/bn/bn_shift.c @@ -177,7 +177,7 @@ int BN_rshift(BIGNUM *r, const BIGNUM *a, int n) nw=n/BN_BITS2; rb=n%BN_BITS2; lb=BN_BITS2-rb; - if (nw > a->top || a->top == 0) + if (nw >= a->top || a->top == 0) { BN_zero(r); return(1); |