diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-05-13 10:42:48 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-05-13 10:42:48 +0000 |
commit | 752beb6c0c0e7329a60fd312719cd7a410162aa1 (patch) | |
tree | 1f811530e56b8d078e3a88c20203c6b15af4da30 /sys/net/bpf.c | |
parent | 889970baeca780212c1953e389cafda53b2d471e (diff) |
test mbuf pointers against NULL not 0
ok krw@ miod@
Diffstat (limited to 'sys/net/bpf.c')
-rw-r--r-- | sys/net/bpf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c index f76c855a8e1..5626c73fef0 100644 --- a/sys/net/bpf.c +++ b/sys/net/bpf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bpf.c,v 1.118 2015/02/10 21:56:10 miod Exp $ */ +/* $OpenBSD: bpf.c,v 1.119 2015/05/13 10:42:46 jsg Exp $ */ /* $NetBSD: bpf.c,v 1.33 1997/02/21 23:59:35 thorpej Exp $ */ /* @@ -1157,7 +1157,7 @@ bpf_mcopy(const void *src_arg, void *dst_arg, size_t len) m = src_arg; dst = dst_arg; while (len > 0) { - if (m == 0) + if (m == NULL) panic("bpf_mcopy"); count = min(m->m_len, len); bcopy(mtod(m, caddr_t), (caddr_t)dst, count); |