Ensure an address is removed from the interface address

list when the installation of that address fails.

PR:		139559
This commit is contained in:
qingli 2010-01-08 17:49:24 +00:00
parent ba9f3a722e
commit 316634c7ad

View File

@ -562,7 +562,7 @@ in_control(struct socket *so, u_long cmd, caddr_t data, struct ifnet *ifp,
(hostIsNew || maskIsNew))
error = in_ifinit(ifp, ia, &ifra->ifra_addr, 0);
if (error != 0 && iaIsNew)
goto out;
break;
if ((ifp->if_flags & IFF_BROADCAST) &&
(ifra->ifra_broadaddr.sin_family == AF_INET))