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
ba9f3a722e
commit
316634c7ad
@ -562,7 +562,7 @@ in_control(struct socket *so, u_long cmd, caddr_t data, struct ifnet *ifp,
|
|||||||
(hostIsNew || maskIsNew))
|
(hostIsNew || maskIsNew))
|
||||||
error = in_ifinit(ifp, ia, &ifra->ifra_addr, 0);
|
error = in_ifinit(ifp, ia, &ifra->ifra_addr, 0);
|
||||||
if (error != 0 && iaIsNew)
|
if (error != 0 && iaIsNew)
|
||||||
goto out;
|
break;
|
||||||
|
|
||||||
if ((ifp->if_flags & IFF_BROADCAST) &&
|
if ((ifp->if_flags & IFF_BROADCAST) &&
|
||||||
(ifra->ifra_broadaddr.sin_family == AF_INET))
|
(ifra->ifra_broadaddr.sin_family == AF_INET))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user