Tweak context-construct logic.

This commit is contained in:
Simon Kelley
2012-12-22 22:45:54 +00:00
parent 87d346f6a7
commit d7346a1e8c

View File

@@ -569,10 +569,10 @@ void dhcp_construct_contexts(time_t now)
param.now = now; param.now = now;
for (context = daemon->dhcp6; context; context = context->next) for (context = daemon->dhcp6; context; context = context->next)
if (context->flags & CONTEXT_CONSTRUCTED)
{ {
context->flags |= CONTEXT_GC;
context->if_index = 0; context->if_index = 0;
if (context->flags & CONTEXT_CONSTRUCTED)
context->flags |= CONTEXT_GC;
} }
iface_enumerate(AF_INET6, &param, construct_worker); iface_enumerate(AF_INET6, &param, construct_worker);