diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-03-23 07:33:48 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-03-23 07:33:48 +0000 |
commit | fcc61246a19d4651c208c8be2b402d229dc80ea0 (patch) | |
tree | b719c32f6af03d6bfcf6f6907994307837ed426b /sys/netipx/ipx_ip.c | |
parent | 0fc27484c8a2d0548d99fc3c9b49b3ddea8f0233 (diff) |
Be paranoid when copying m_pkthdr.
Diffstat (limited to 'sys/netipx/ipx_ip.c')
-rw-r--r-- | sys/netipx/ipx_ip.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netipx/ipx_ip.c b/sys/netipx/ipx_ip.c index 298e12d6c74..0f04ea21a9b 100644 --- a/sys/netipx/ipx_ip.c +++ b/sys/netipx/ipx_ip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipx_ip.c,v 1.7 2000/01/15 18:49:49 fgsch Exp $ */ +/* $OpenBSD: ipx_ip.c,v 1.8 2001/03/23 07:33:47 angelos Exp $ */ /*- * @@ -278,7 +278,9 @@ ipxipoutput(ifp, m, dst, rt) m0->m_next = m; m0->m_len = sizeof(struct ip); m0->m_pkthdr.len = m0->m_len + m->m_len; + m0->m_pkthdr.tdbi = m->m_pkthdr.tdbi; m->m_flags &= ~M_PKTHDR; + m->m_pkthdr.tdbi = NULL; } else { M_PREPEND(m, sizeof(struct ip), M_DONTWAIT); if (m == NULL) |