From a8db1d93f1ead47c0bfb4dbe40b8149b7698ec5f Mon Sep 17 00:00:00 2001 From: Jonathan Lemon Date: Thu, 14 Sep 2000 21:06:48 +0000 Subject: [PATCH] m_cat() can free its second argument, so collect the checksum information from the fragment before calling m_cat(). --- sys/netinet/ip_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index bd04b01b4709..a360b4f8228e 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -938,9 +938,9 @@ inserted: for (q = nq; q != NULL; q = nq) { nq = q->m_nextpkt; q->m_nextpkt = NULL; - m_cat(m, q); m->m_pkthdr.csum_flags &= q->m_pkthdr.csum_flags; m->m_pkthdr.csum_data += q->m_pkthdr.csum_data; + m_cat(m, q); } #ifdef IPDIVERT