From fc872de97eda819b6ba097cc31132f80eedb9d35 Mon Sep 17 00:00:00 2001 From: Markus Friedl Date: Fri, 9 May 2008 03:14:08 +0000 Subject: should check for null pointers; from henning@ --- sys/netinet/in_pcb.c | 4 ++-- 1 file 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) -- cgit v1.2.3