Fix initialisation order.

This commit is contained in:
Simon Kelley committed 2012-12-18 18:31:11 +00:00
1 parent 72c9c3b11b
commit 8445f5d2e2
4 files changed
+18 -13

No files matched your search

+5 -2
View File
@@ -577,8 +577,11 @@ void dhcp_construct_contexts(time_t now)
for (context = daemon->dhcp6; context; context = context->next)
if (context->flags & CONTEXT_CONSTRUCTED)
context->flags |= CONTEXT_GC;
{
context->flags |= CONTEXT_GC;
context->if_index = 0;
}
iface_enumerate(AF_INET6, &param, construct_worker);
for (up = &daemon->dhcp6, context = daemon->dhcp6; context; context = tmp)