summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2015-04-20 19:29:24 +0200
committerSteven Barth <steven@midlink.org>2015-04-20 19:29:24 +0200
commit461c4fb8fbe39fc480111ea0e7891bee9138c4d0 (patch)
treeb8f7884a047269aabcfee34e49476ee131157aeb
parentc6e1e5f0f977d5e921fa5a6e34a3299019e4fc8a (diff)
dhcpv6: don't initialize IA-handing when turning down interface
-rw-r--r--src/dhcpv6-ia.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcpv6-ia.c b/src/dhcpv6-ia.c
index 132efdb..69fda07 100644
--- a/src/dhcpv6-ia.c
+++ b/src/dhcpv6-ia.c
@@ -74,7 +74,7 @@ int setup_dhcpv6_ia_interface(struct interface *iface, bool enable)
}
}
- if (iface->dhcpv6 == RELAYD_SERVER) {
+ if (enable && iface->dhcpv6 == RELAYD_SERVER) {
if (!iface->ia_assignments.next)
INIT_LIST_HEAD(&iface->ia_assignments);