From d7346a1e8ce00ed4912f755c92e6281e7793c973 Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Sat, 22 Dec 2012 22:45:54 +0000 Subject: [PATCH] Tweak context-construct logic. --- src/dhcp6.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/dhcp6.c b/src/dhcp6.c index 9db87d3..1428aa6 100644 --- a/src/dhcp6.c +++ b/src/dhcp6.c @@ -569,11 +569,11 @@ void dhcp_construct_contexts(time_t now) param.now = now; 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, ¶m, construct_worker);