summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2000-10-26 12:18:13 +0000
committerru <ru@FreeBSD.org>2000-10-26 12:18:13 +0000
commit5ef89cdbba7c77632bd874d54e9aced61c86a9f5 (patch)
treef56c6ce90284591b7caf75898553bc0377fc96a3 /sys
parent7eb085651d935f4d839f4f8ad6261588c9b83941 (diff)
downloadFreeBSD-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')
-rw-r--r--sys/netinet/ip_input.c4
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) {
OpenPOWER on IntegriCloud