From 24bec03beb1d97f7c7b3f0066f3a309800de435f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bodo=20M=C3=B6ller?= Date: Tue, 13 Jun 2000 15:07:39 +0000 Subject: [PATCH] This probably fixes a BN_rshift bug. --- crypto/bn/bn_shift.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- GitLab