fix oneoff

git-svn-id: file:///svn/unbound/trunk@4433 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2018-01-02 13:36:17 +00:00
parent fa90bbc07a
commit 21d1989e05

View file

@ -1236,7 +1236,7 @@ subtract_1918(uint32_t a, uint32_t b)
return b-a; return b-a;
} }
if(a > b && a - b > cutoff) { 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 */ /* wrong case, b smaller than a */
return 0; return 0;