summaryrefslogtreecommitdiff
path: root/sys/netinet/in_pcb.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2008-05-09 03:14:08 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2008-05-09 03:14:08 +0000
commitfc872de97eda819b6ba097cc31132f80eedb9d35 (patch)
tree143c43895ca4813dfd310e36abba216e2f3f7135 /sys/netinet/in_pcb.c
parent5dc5e5de07068e27353f70fa51fe1fdd4165b68e (diff)
should check for null pointers; from henning@
Diffstat (limited to 'sys/netinet/in_pcb.c')
-rw-r--r--sys/netinet/in_pcb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c
index 58702c81a36..599c712c690 100644
--- a/sys/netinet/in_pcb.c
+++ b/sys/netinet/in_pcb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in_pcb.c,v 1.96 2008/05/09 02:52:15 markus Exp $ */
+/* $OpenBSD: in_pcb.c,v 1.97 2008/05/09 03:14:07 markus Exp $ */
/* $NetBSD: in_pcb.c,v 1.25 1996/02/13 23:41:53 christos Exp $ */
/*
@@ -1022,7 +1022,7 @@ in_pcblookup_listen(struct inpcbtable *table, struct in_addr laddr,
u_int16_t lport = lport_arg;
#if NPF
- if (m->m_pkthdr.pf.flags & PF_TAG_DIVERTED) {
+ if (m && m->m_pkthdr.pf.flags & PF_TAG_DIVERTED) {
struct pf_divert *divert;
if ((divert = pf_find_divert(m)) == NULL)