don't unlock lle if it is NULL

This commit is contained in:
Kip Macy 2008-12-16 02:48:12 +00:00
parent 23ee1bfa82
commit 86cd829d64

View File

@ -777,7 +777,8 @@ arp_ifinit(struct ifnet *ifp, struct ifaddr *ifa)
if (lle == NULL)
log(LOG_INFO, "arp_ifinit: cannot create arp "
"entry for interface address\n");
LLE_RUNLOCK(lle);
else
LLE_RUNLOCK(lle);
ifa->ifa_rtrequest = NULL;
}