don't unlock lle if it is NULL

This commit is contained in:
kmacy 2008-12-16 02:48:12 +00:00
parent bf113303e6
commit 81140652bf

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;
}