--- wide-dhcpv6-20080615/dhcp6c.orig 2013-05-19 16:30:29.839073013 +1000
+++ wide-dhcpv6-20080615/dhcp6c.c 2013-05-19 16:31:06.513670394 +1000
@@ -1845,15 +1845,6 @@
}
/*
- * Call the configuration script, if specified, to handle various
- * configuration parameters.
- */
- if (ifp->scriptpath != NULL && strlen(ifp->scriptpath) != 0) {
- debug_printf(LOG_DEBUG, FNAME, "executes %s", ifp->scriptpath);
- client6_script(ifp->scriptpath, state, optinfo);
- }
-
- /*
* Set refresh timer for configuration information specified in
* information-request. If the timer value is specified by the server
* in an information refresh time option, use it; use the protocol
@@ -1905,6 +1896,15 @@
&optinfo->serverID, ev->authparam);
}
+ /*
+ * Call the configuration script, if specified, to handle various
+ * configuration parameters.
+ */
+ if (ifp->scriptpath != NULL && strlen(ifp->scriptpath) != 0) {
+ debug_printf(LOG_DEBUG, FNAME, "executes %s", ifp->scriptpath);
+ client6_script(ifp->scriptpath, state, optinfo);
+ }
+
dhcp6_remove_event(ev);
if (state == DHCP6S_RELEASE) {