dhcpv6: don't initialize IA-handing when turning down interface
authorSteven Barth <steven@midlink.org>
Mon, 20 Apr 2015 17:29:24 +0000 (19:29 +0200)
committerSteven Barth <steven@midlink.org>
Mon, 20 Apr 2015 17:29:24 +0000 (19:29 +0200)
src/dhcpv6-ia.c

index 132efdba938a45fc9b647517784808023f0b96a3..69fda0792420c98d9264d1ffa97eff349160e963 100644 (file)
@@ -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);