diff options
-rw-r--r-- | sys/netinet6/ip6_fw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/ip6_fw.c b/sys/netinet6/ip6_fw.c index 1ec33a1..53c0cc7 100644 --- a/sys/netinet6/ip6_fw.c +++ b/sys/netinet6/ip6_fw.c @@ -871,7 +871,7 @@ zero_entry6(struct mbuf *m) struct ip6_fw_chain *fcp; int s; - if (m) { + if (m && m->m_len != 0) { if (m->m_len != sizeof(struct ip6_fw)) return(EINVAL); frwl = mtod(m, struct ip6_fw *); |