Workaround to avoid panic during detach pccard nic.

This commit is contained in:
Hajimu UMEMOTO 2000-07-25 11:21:01 +00:00
parent 78a40870e5
commit 8bf72aef7c

View File

@ -828,7 +828,10 @@ rt_newmaddrmsg(cmd, ifma)
bzero((caddr_t)&info, sizeof(info)); bzero((caddr_t)&info, sizeof(info));
ifaaddr = ifma->ifma_addr; 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'' * If a link-layer address is present, present it as a ``gateway''
* (similarly to how ARP entries, e.g., are presented). * (similarly to how ARP entries, e.g., are presented).