diff --git a/validator/val_sigcrypt.c b/validator/val_sigcrypt.c index 951d79edb..2d52f0f5f 100644 --- a/validator/val_sigcrypt.c +++ b/validator/val_sigcrypt.c @@ -1236,7 +1236,7 @@ subtract_1918(uint32_t a, uint32_t b) return b-a; } if(a > b && a - b > cutoff) { - return ((uint32_t)0xffffffff) - (a-b); + return ((uint32_t)0xffffffff) - (a-b-1); } /* wrong case, b smaller than a */ return 0;