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

from the fragment before calling m_cat().
This commit is contained in:
jlemon 2000-09-14 21:06:48 +00:00
parent ebc05310ca
commit 78394a5493

View File

@ -938,9 +938,9 @@ ip_reass(m, fp, where)
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