From 21d1989e0588a2da6dc1d60c89d9e0941fa9ded8 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Tue, 2 Jan 2018 13:36:17 +0000 Subject: [PATCH] fix oneoff git-svn-id: file:///svn/unbound/trunk@4433 be551aaa-1e26-0410-a405-d3ace91eadb9 --- validator/val_sigcrypt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;