summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in.c
diff options
context:
space:
mode:
authorrrs <rrs@FreeBSD.org>2012-08-16 17:55:16 +0000
committerrrs <rrs@FreeBSD.org>2012-08-16 17:55:16 +0000
commit7c7c85dcacfa78db4623a3f2cfc2849b5b551635 (patch)
tree7c392f23b601b65f4ab97cf08bf6f10640d1a507 /sys/netinet/in.c
parent8a9e4337827c8903f285e00b61898635cf60facc (diff)
downloadFreeBSD-src-7c7c85dcacfa78db4623a3f2cfc2849b5b551635.zip
FreeBSD-src-7c7c85dcacfa78db4623a3f2cfc2849b5b551635.tar.gz
Its never a good idea to double free the same
address. MFC after: 1 week (after the other commits ahead of this gets MFC'd)
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 69f40b9..add3d10 100644
--- a/sys/netinet/in.c
+++ b/sys/netinet/in.c
@@ -573,7 +573,7 @@ in_control(struct socket *so, u_long cmd, caddr_t data, struct ifnet *ifp,
}
TAILQ_REMOVE(&ifp->if_addrhead, &ia->ia_ifa, ifa_link);
IF_ADDR_WUNLOCK(ifp);
- ifa_free(&ia->ia_ifa); /* if_addrhead */
+/* ifa_free(&ia->ia_ifa); - Double free?? */ /* if_addrhead */
IN_IFADDR_WLOCK();
TAILQ_REMOVE(&V_in_ifaddrhead, ia, ia_link);
OpenPOWER on IntegriCloud