summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-09-12 01:11:55 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-09-12 01:11:55 +0000
commitd866bdae4cc7f01926c91096fd9689068f37a3ba (patch)
treeffb2425ee6610e8ba294e63584a4d51bcb21b9ec /sys
parent64097569103db29b6f7213d536ff09f09ffc44da (diff)
configure "next" pointer correctly. from j@pureftpd.org
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet6/in6_ifattach.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet6/in6_ifattach.c b/sys/netinet6/in6_ifattach.c
index a2a5d45e1c6..311162ca997 100644
--- a/sys/netinet6/in6_ifattach.c
+++ b/sys/netinet6/in6_ifattach.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6_ifattach.c,v 1.31 2002/09/11 03:27:30 itojun Exp $ */
+/* $OpenBSD: in6_ifattach.c,v 1.32 2002/09/12 01:11:54 itojun Exp $ */
/* $KAME: in6_ifattach.c,v 1.124 2001/07/18 08:32:51 jinmei Exp $ */
/*
@@ -685,6 +685,8 @@ in6_ifdetach(ifp)
/* undo everything done by in6_ifattach(), just in case */
for (ifa = ifp->if_addrlist.tqh_first; ifa; ifa = next)
{
+ next = ifa->ifa_list.tqe_next;
+
if (ifa->ifa_addr->sa_family != AF_INET6
|| !IN6_IS_ADDR_LINKLOCAL(&satosin6(&ifa->ifa_addr)->sin6_addr)) {
continue;