]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Add the interface to our list before initing state.
authorRoy Marples <roy@marples.name>
Tue, 6 May 2014 18:14:43 +0000 (18:14 +0000)
committerRoy Marples <roy@marples.name>
Tue, 6 May 2014 18:14:43 +0000 (18:14 +0000)
dhcpcd.c

index 27cebcfe0aa18a4e7b77fd7211aeaa23670980cf..e378b2dc068a564a05c022213cd72b7cf9641b96 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -819,8 +819,8 @@ reconf_reboot(struct dhcpcd_ctx *ctx, int action, int argc, char **argv, int oi)
                                ipv4_applyaddr(ifn);
                        if_free(ifp);
                } else {
-                       init_state(ifp, argc, argv);
                        TAILQ_INSERT_TAIL(ctx->ifaces, ifp, next);
+                       init_state(ifp, argc, argv);
                        dhcpcd_startinterface(ifp);
                }
        }