svn commit: r201811 - head/sys/netinet
Qing Li
qingli at FreeBSD.org
Fri Jan 8 17:49:25 UTC 2010
Author: qingli
Date: Fri Jan 8 17:49:24 2010
New Revision: 201811
URL: http://svn.freebsd.org/changeset/base/201811
Log:
Ensure an address is removed from the interface address
list when the installation of that address fails.
PR: 139559
Modified:
head/sys/netinet/in.c
Modified: head/sys/netinet/in.c
==============================================================================
--- head/sys/netinet/in.c Fri Jan 8 17:47:37 2010 (r201810)
+++ head/sys/netinet/in.c Fri Jan 8 17:49:24 2010 (r201811)
@@ -562,7 +562,7 @@ in_control(struct socket *so, u_long cmd
(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))
More information about the svn-src-head
mailing list