mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-05 22:31:36 +00:00
Merge branch 'master' of /home/wd/git/u-boot/custodians
This commit is contained in:
commit
96b35730a4
1 changed files with 2 additions and 1 deletions
|
@ -1201,7 +1201,8 @@ static IP_t *__NetDefragment(IP_t *ip, int *lenp)
|
||||||
h = payload + h->next_hole;
|
h = payload + h->next_hole;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (offset8 + (len / 8) <= h - payload) {
|
/* last fragment may be 1..7 bytes, the "+7" forces acceptance */
|
||||||
|
if (offset8 + ((len + 7) / 8) <= h - payload) {
|
||||||
/* no overlap with holes (dup fragment?) */
|
/* no overlap with holes (dup fragment?) */
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue