Commit 1c4273ae authored by Andy Polyakov's avatar Andy Polyakov
Browse files

Fix crash in BN_rshift [from HEAD].

PR: 1663
parent 1ba833a4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);