diff options
author | glebius <glebius@FreeBSD.org> | 2012-10-25 09:00:57 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2012-10-25 09:00:57 +0000 |
commit | a5c4b7118dc2c1ba6f324af068ed6c234f6059f4 (patch) | |
tree | f8608e115374bd93c58390d0f382f19dd9d2bce0 /sys/netinet/ip_input.c | |
parent | 5aeb11e743d4018ef0282111d75d8480d83307f7 (diff) | |
download | FreeBSD-src-a5c4b7118dc2c1ba6f324af068ed6c234f6059f4.zip FreeBSD-src-a5c4b7118dc2c1ba6f324af068ed6c234f6059f4.tar.gz |
Fix error in r241913 that had broken fragment reassembly.
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r-- | sys/netinet/ip_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 848325b..2f9c8ee 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -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; } |