mirror of
https://github.com/opnsense/src.git
synced 2026-04-29 10:11:09 -04:00
Workaround to avoid panic during detach pccard nic.
This commit is contained in:
parent
78a40870e5
commit
8bf72aef7c
1 changed files with 4 additions and 1 deletions
|
|
@ -828,7 +828,10 @@ rt_newmaddrmsg(cmd, ifma)
|
|||
|
||||
bzero((caddr_t)&info, sizeof(info));
|
||||
ifaaddr = ifma->ifma_addr;
|
||||
ifpaddr = ifp->if_addrhead.tqh_first->ifa_addr;
|
||||
if (ifp && ifp->if_addrhead.tqh_first)
|
||||
ifpaddr = ifp->if_addrhead.tqh_first->ifa_addr;
|
||||
else
|
||||
ifpaddr = NULL;
|
||||
/*
|
||||
* If a link-layer address is present, present it as a ``gateway''
|
||||
* (similarly to how ARP entries, e.g., are presented).
|
||||
|
|
|
|||
Loading…
Reference in a new issue