# HG changeset patch # Parent b526cfb2a5141e7ea38fbeedd676abd0ca46ce23 Avoid panic when nd6_storelladdr is called with a NULL mbuf. diff -r b526cfb2a514 sys/netinet6/nd6.c --- a/sys/netinet6/nd6.c Mon Jan 07 10:04:38 2013 -0800 +++ b/sys/netinet6/nd6.c Tue Jan 08 13:43:24 2013 -0800 @@ -2166,7 +2166,7 @@ nd6_storelladdr(struct ifnet *ifp, struc *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) {