summaryrefslogtreecommitdiffstats
path: root/sys/dev/ctau
diff options
context:
space:
mode:
authorrik <rik@FreeBSD.org>2005-07-09 16:14:05 +0000
committerrik <rik@FreeBSD.org>2005-07-09 16:14:05 +0000
commita62ddd3522853d6c4c5cc44450d5f53420110dad (patch)
tree7236153fa972c4171adfc38df99840d1537c3096 /sys/dev/ctau
parent6f7b42e65989f75a72cb5b1fcd95006723198f98 (diff)
downloadFreeBSD-src-a62ddd3522853d6c4c5cc44450d5f53420110dad.zip
FreeBSD-src-a62ddd3522853d6c4c5cc44450d5f53420110dad.tar.gz
Use m_length (m, NULL) instead of m->m_pkthdr.len.
Problems reported by: strijar at urai dot ru Approved by: re (scottl)
Diffstat (limited to 'sys/dev/ctau')
-rw-r--r--sys/dev/ctau/if_ct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ctau/if_ct.c b/sys/dev/ctau/if_ct.c
index f026a9f..f231820 100644
--- a/sys/dev/ctau/if_ct.c
+++ b/sys/dev/ctau/if_ct.c
@@ -1033,7 +1033,7 @@ static void ct_send (drv_t *d)
if (d->ifp->if_bpf)
BPF_MTAP (d->ifp, m);
#endif
- len = m->m_pkthdr.len;
+ len = m_length (m, NULL);
if (! m->m_next)
ct_send_packet (d->chan, (u_char*)mtod (m, caddr_t),
len, 0);
OpenPOWER on IntegriCloud