mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Avoid NULL dereference in nd6_storelladdr when no mbuf is provided. It
is called this way from a couple of places in the OFED code. (toecore calls it too but that's going to change shortly). Reviewed by: bz@
This commit is contained in:
parent
460cf046c2
commit
f31b83e118
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue