summaryrefslogtreecommitdiff
path: root/sys/netinet6/in6_ifattach.c
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2021-03-15 17:28:46 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2021-03-15 17:28:46 +0000
commit8d01540547773a58e55ce3e3740e9758c85e4e32 (patch)
tree9bb28bbdd56146a5243227678b31d569453ca243 /sys/netinet6/in6_ifattach.c
parent3bcb779f66430b73b4466602183b754ecc90dd66 (diff)
Clear AUTOCONF6TEMP flag when we detach inet6.
Diffstat (limited to 'sys/netinet6/in6_ifattach.c')
-rw-r--r--sys/netinet6/in6_ifattach.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet6/in6_ifattach.c b/sys/netinet6/in6_ifattach.c
index b019cce1b0b..b1ac9c82621 100644
--- a/sys/netinet6/in6_ifattach.c
+++ b/sys/netinet6/in6_ifattach.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6_ifattach.c,v 1.117 2020/06/21 11:32:34 dlg Exp $ */
+/* $OpenBSD: in6_ifattach.c,v 1.118 2021/03/15 17:28:45 florian Exp $ */
/* $KAME: in6_ifattach.c,v 1.124 2001/07/18 08:32:51 jinmei Exp $ */
/*
@@ -459,6 +459,6 @@ in6_ifdetach(struct ifnet *ifp)
rtfree(rt);
}
- if (ifp->if_xflags & IFXF_AUTOCONF6)
- ifp->if_xflags &= ~IFXF_AUTOCONF6;
+ if (ifp->if_xflags & (IFXF_AUTOCONF6 | IFXF_AUTOCONF6TEMP))
+ ifp->if_xflags &= ~(IFXF_AUTOCONF6 | IFXF_AUTOCONF6TEMP);
}