parent
7f18730033
commit
6bf0e671a0
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: nd6.c,v 1.235 2017/06/22 09:24:02 ozaki-r Exp $ */
|
||||
/* $NetBSD: nd6.c,v 1.236 2017/10/05 03:42:14 ozaki-r Exp $ */
|
||||
/* $KAME: nd6.c,v 1.279 2002/06/08 11:16:51 itojun Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -31,7 +31,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: nd6.c,v 1.235 2017/06/22 09:24:02 ozaki-r Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: nd6.c,v 1.236 2017/10/05 03:42:14 ozaki-r Exp $");
|
||||
|
||||
#ifdef _KERNEL_OPT
|
||||
#include "opt_net_mpsafe.h"
|
||||
|
@ -2321,6 +2321,11 @@ nd6_resolve(struct ifnet *ifp, const struct rtentry *rt, struct mbuf *m,
|
|||
created = true;
|
||||
}
|
||||
|
||||
if (ln == NULL) {
|
||||
m_freem(m);
|
||||
return ENETDOWN; /* better error? */
|
||||
}
|
||||
|
||||
LLE_WLOCK_ASSERT(ln);
|
||||
|
||||
/* We don't have to do link-layer address resolution on a p2p link. */
|
||||
|
|
Loading…
Reference in New Issue