Ensure an address is removed from the interface address
list when the installation of that address fails. PR: 139559
This commit is contained in:
parent
1b16866af5
commit
646c800540
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user