Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/netinet/ip_input.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/netinet/ip_input.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.67 retrieving revision 1.68 diff -u -p -r1.67 -r1.68 --- src/sys/netinet/ip_input.c 1998/06/01 00:39:37 1.67 +++ src/sys/netinet/ip_input.c 1998/07/17 00:28:00 1.68 @@ -1,4 +1,4 @@ -/* $NetBSD: ip_input.c,v 1.67 1998/06/01 00:39:37 thorpej Exp $ */ +/* $NetBSD: ip_input.c,v 1.68 1998/07/17 00:28:00 sommerfe Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -329,7 +329,10 @@ next: rv = pfh->pfil_func(ip, hlen, m->m_pkthdr.rcvif, 0, &m0); if (rv) goto next; - ip = mtod(m = m0, struct ip *); + m = m0; + if (m == NULL) + goto next; + ip = mtod(m, struct ip *); } #endif /* PFIL_HOOKS */