From: Steven Barth Date: Mon, 20 Apr 2015 17:29:24 +0000 (+0200) Subject: dhcpv6: don't initialize IA-handing when turning down interface X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=461c4fb8fbe39fc480111ea0e7891bee9138c4d0;p=oweals%2Fodhcpd.git dhcpv6: don't initialize IA-handing when turning down interface --- 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);