mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
fix oneoff
git-svn-id: file:///svn/unbound/trunk@4433 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
fa90bbc07a
commit
21d1989e05
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue