diff options
author | qingli <qingli@FreeBSD.org> | 2010-01-08 17:49:24 +0000 |
---|---|---|
committer | qingli <qingli@FreeBSD.org> | 2010-01-08 17:49:24 +0000 |
commit | 316634c7adc4edcba52e3c3af455e3f18f37adb4 (patch) | |
tree | f9cfde1223d40a7316aca1e1fddb49c0883f22fa /sys/netinet/in.c | |
parent | ba9f3a722e9242af5824a90af3bc0a53ea414669 (diff) | |
download | FreeBSD-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.c | 2 |
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)) |