This probably fixes a BN_rshift bug.

This commit is contained in:
Bodo Möller 2000-06-13 15:07:39 +00:00
parent c3b1424cc0
commit 24bec03beb

View file

@ -162,7 +162,7 @@ int BN_rshift(BIGNUM *r, BIGNUM *a, int n)
nw=n/BN_BITS2; nw=n/BN_BITS2;
rb=n%BN_BITS2; rb=n%BN_BITS2;
lb=BN_BITS2-rb; lb=BN_BITS2-rb;
if (nw > a->top) if (nw > a->top || a->top == 0)
{ {
BN_zero(r); BN_zero(r);
return(1); return(1);