From 461c4fb8fbe39fc480111ea0e7891bee9138c4d0 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Mon, 20 Apr 2015 19:29:24 +0200 Subject: dhcpv6: don't initialize IA-handing when turning down interface --- src/dhcpv6-ia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dhcpv6-ia.c') 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); -- cgit v1.2.3