From 316634c7adc4edcba52e3c3af455e3f18f37adb4 Mon Sep 17 00:00:00 2001 From: qingli Date: Fri, 8 Jan 2010 17:49:24 +0000 Subject: [PATCH] Ensure an address is removed from the interface address list when the installation of that address fails. PR: 139559 --- sys/netinet/in.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/in.c b/sys/netinet/in.c index a0d6ac9e2131..4743c01a70a8 100644 --- a/sys/netinet/in.c +++ b/sys/netinet/in.c @@ -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))