summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in.c
diff options
context:
space:
mode:
authorqingli <qingli@FreeBSD.org>2010-01-08 17:49:24 +0000
committerqingli <qingli@FreeBSD.org>2010-01-08 17:49:24 +0000
commit316634c7adc4edcba52e3c3af455e3f18f37adb4 (patch)
treef9cfde1223d40a7316aca1e1fddb49c0883f22fa /sys/netinet/in.c
parentba9f3a722e9242af5824a90af3bc0a53ea414669 (diff)
downloadFreeBSD-src-316634c7adc4edcba52e3c3af455e3f18f37adb4.zip
FreeBSD-src-316634c7adc4edcba52e3c3af455e3f18f37adb4.tar.gz
Ensure an address is removed from the interface address
list when the installation of that address fails. PR: 139559
Diffstat (limited to 'sys/netinet/in.c')
-rw-r--r--sys/netinet/in.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/in.c b/sys/netinet/in.c
index a0d6ac9..4743c01 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))
OpenPOWER on IntegriCloud