Skip to content

Commit

Permalink
Fix crash in BN_rshift.
Browse files Browse the repository at this point in the history
PR: 1663
  • Loading branch information
Andy Polyakov committed Oct 28, 2008
1 parent 436bdcf commit b764f82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/bn/bn_shift.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b764f82

Please sign in to comment.