diff options
Diffstat (limited to 'sys/net/bpf.c')
-rw-r--r-- | sys/net/bpf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c index f64776a88f6..d8fb4798ae1 100644 --- a/sys/net/bpf.c +++ b/sys/net/bpf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bpf.c,v 1.11 1997/09/05 20:17:30 deraadt Exp $ */ +/* $OpenBSD: bpf.c,v 1.12 1997/09/30 02:31:04 millert Exp $ */ /* $NetBSD: bpf.c,v 1.33 1997/02/21 23:59:35 thorpej Exp $ */ /* @@ -1118,6 +1118,9 @@ bpf_mtap(arg, m) size_t pktlen, slen; struct mbuf *m0; + if (m == NULL) + return; + pktlen = 0; for (m0 = m; m0 != 0; m0 = m0->m_next) pktlen += m0->m_len; |