Fix initialisation order.
diff --git a/src/dhcp6.c b/src/dhcp6.c
index fe3bbd2..777d856 100644
--- a/src/dhcp6.c
+++ b/src/dhcp6.c
@@ -577,8 +577,11 @@
 
   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)