m_cat() can free its second argument, so collect the checksum information

from the fragment before calling m_cat().
This commit is contained in:
Jonathan Lemon 2000-09-14 21:06:48 +00:00
parent 606f8eb27a
commit a8db1d93f1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=65859

View File

@ -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