diff options
author | ru <ru@FreeBSD.org> | 2000-10-26 12:18:13 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2000-10-26 12:18:13 +0000 |
commit | 5ef89cdbba7c77632bd874d54e9aced61c86a9f5 (patch) | |
tree | f56c6ce90284591b7caf75898553bc0377fc96a3 /sys/netinet/ip_input.c | |
parent | 7eb085651d935f4d839f4f8ad6261588c9b83941 (diff) | |
download | FreeBSD-src-5ef89cdbba7c77632bd874d54e9aced61c86a9f5.zip FreeBSD-src-5ef89cdbba7c77632bd874d54e9aced61c86a9f5.tar.gz |
Wrong header length used for certain reassembled IP packets.
This was first fixed in rev 1.82 but then broken in rev 1.125.
PR: 6177
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r-- | sys/netinet/ip_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 6eae653..1374d25 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -686,10 +686,10 @@ found: #endif return; } - /* Get the length of the reassembled packets header */ - hlen = IP_VHL_HL(ip->ip_vhl) << 2; ipstat.ips_reassembled++; ip = mtod(m, struct ip *); + /* Get the header length of the reassembled packet */ + hlen = IP_VHL_HL(ip->ip_vhl) << 2; #ifdef IPDIVERT /* Restore original checksum before diverting packet */ if (divert_info != 0) { |