]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
fix oneoff
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 2 Jan 2018 13:36:17 +0000 (13:36 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 2 Jan 2018 13:36:17 +0000 (13:36 +0000)
git-svn-id: file:///svn/unbound/trunk@4433 be551aaa-1e26-0410-a405-d3ace91eadb9

validator/val_sigcrypt.c

index 951d79edb1b0367d6eb85449f211e1891bbcb21e..2d52f0f5f44dad9ca593c6e741034064f7938ffd 100644 (file)
@@ -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;