summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuigi Rizzo <luigi@FreeBSD.org>2001-01-27 02:31:08 +0000
committerLuigi Rizzo <luigi@FreeBSD.org>2001-01-27 02:31:08 +0000
commitf8acf87bb582bdb60bec6238923008e37720008b (patch)
tree0c18595e8598b385f7976976b94700349f702de3
parentba88dfc73375c2729cafdc4c1da0c84e720b4c29 (diff)
Notes
-rw-r--r--sys/netinet/ip_fw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/ip_fw.c b/sys/netinet/ip_fw.c
index 5e3cc1cc4210..ca112d5edd2d 100644
--- a/sys/netinet/ip_fw.c
+++ b/sys/netinet/ip_fw.c
@@ -972,6 +972,7 @@ ip_fw_chk(struct ip **pip, int hlen,
#define PULLUP_TO(len) do { \
if ((*m)->m_len < (len)) { \
+ ip = NULL ; \
if ((*m = m_pullup(*m, (len))) == 0) \
goto bogusfrag; \
ip = mtod(*m, struct ip *); \
@@ -1310,7 +1311,7 @@ check_ports:
break;
bogusfrag:
- if (fw_verbose)
+ if (fw_verbose && ip != NULL)
ipfw_report(NULL, ip, offset, rif, oif);
goto dropit;