commit | 8445f5d2e2cf224edc71b896189a6526e58ec463 | [log] [tgz] |
---|---|---|
author | Simon Kelley <simon@thekelleys.org.uk> | Mon Dec 17 21:54:08 2012 +0000 |
committer | Simon Kelley <simon@thekelleys.org.uk> | Tue Dec 18 18:31:11 2012 +0000 |
tree | a92d82fd1bde25d716815d0ffd2194a3f8289e84 | |
parent | 72c9c3b11bbc448144210abc5fb8ba89813d2fdf [diff] [blame] |
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, ¶m, construct_worker); for (up = &daemon->dhcp6, context = daemon->dhcp6; context; context = tmp)