summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bn/bn_shift.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bn/bn_shift.c')
-rw-r--r--src/lib/libcrypto/bn/bn_shift.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/bn/bn_shift.c b/src/lib/libcrypto/bn/bn_shift.c
index 61aae65a6b..0883247384 100644
--- a/src/lib/libcrypto/bn/bn_shift.c
+++ b/src/lib/libcrypto/bn/bn_shift.c
@@ -162,7 +162,7 @@ int BN_rshift(BIGNUM *r, BIGNUM *a, int n)
162 nw=n/BN_BITS2; 162 nw=n/BN_BITS2;
163 rb=n%BN_BITS2; 163 rb=n%BN_BITS2;
164 lb=BN_BITS2-rb; 164 lb=BN_BITS2-rb;
165 if (nw > a->top) 165 if (nw > a->top || a->top == 0)
166 { 166 {
167 BN_zero(r); 167 BN_zero(r);
168 return(1); 168 return(1);