diff options
author | Bodo Möller <bodo@openssl.org> | 2000-06-13 17:07:39 +0200 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2000-06-13 17:07:39 +0200 |
commit | 24bec03beb1d97f7c7b3f0066f3a309800de435f (patch) | |
tree | 051d21edf09d68cf0c0f758b9a4d9f5e26969445 /crypto/bn/bn_shift.c | |
parent | Use BN_CTX_end when exiting early from BN_mod_exp_mont_word because (diff) | |
download | openssl-24bec03beb1d97f7c7b3f0066f3a309800de435f.tar.xz openssl-24bec03beb1d97f7c7b3f0066f3a309800de435f.zip |
This probably fixes a BN_rshift bug.
Diffstat (limited to 'crypto/bn/bn_shift.c')
-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 61aae65a6b..0883247384 100644 --- a/crypto/bn/bn_shift.c +++ b/crypto/bn/bn_shift.c @@ -162,7 +162,7 @@ int BN_rshift(BIGNUM *r, BIGNUM *a, int n) nw=n/BN_BITS2; rb=n%BN_BITS2; lb=BN_BITS2-rb; - if (nw > a->top) + if (nw > a->top || a->top == 0) { BN_zero(r); return(1); |