diff options
-rw-r--r-- | sys/netinet6/nd6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c index 5107f1d..0c1cd8b 100644 --- a/sys/netinet6/nd6.c +++ b/sys/netinet6/nd6.c @@ -2166,7 +2166,7 @@ nd6_storelladdr(struct ifnet *ifp, struct mbuf *m, *lle = NULL; IF_AFDATA_UNLOCK_ASSERT(ifp); - if (m->m_flags & M_MCAST) { + if (m != NULL && m->m_flags & M_MCAST) { int i; switch (ifp->if_type) { |