Ensure an address is removed from the interface address

list when the installation of that address fails.

PR:		139559
This commit is contained in:
Qing Li 2010-01-08 17:49:24 +00:00
parent 1b16866af5
commit 646c800540

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))