Fix error in r241913 that had broken fragment reassembly.
This commit is contained in:
parent
2e3ee2392a
commit
b6fcf6f9f5
@ -904,7 +904,7 @@ found:
|
||||
* Make sure that fragments have a data length
|
||||
* that's a non-zero multiple of 8 bytes.
|
||||
*/
|
||||
if (ntohs(ip->ip_len) == 0 || (ntohs(ip->ip_len & 0x7) != 0)) {
|
||||
if (ip->ip_len == htons(0) || (ntohs(ip->ip_len) & 0x7) != 0) {
|
||||
IPSTAT_INC(ips_toosmall); /* XXX */
|
||||
goto dropfrag;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user