Merge pull request #23 from dedeckeh/bugfixes
authorsbyx <steven@midlink.org>
Wed, 8 Oct 2014 13:59:44 +0000 (15:59 +0200)
committersbyx <steven@midlink.org>
Wed, 8 Oct 2014 13:59:44 +0000 (15:59 +0200)
odhcp6c: Set bound state true before script_call in statefull mode

src/odhcp6c.c

index 7cdf09e47c25b62f1125c5c81efc17e2b97c6847..61ffe9d832b25ae4fbae54f7fd450bdbc4214ba5 100644 (file)
@@ -336,8 +336,8 @@ int main(_unused int argc, char* const argv[])
                        break;
 
                case DHCPV6_STATEFUL:
-                       script_call("bound");
                        bound = true;
+                       script_call("bound");
                        syslog(LOG_NOTICE, "entering stateful-mode on %s", ifname);
 
                        while (!signal_usr2 && !signal_term) {