]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix a crash.
authorRoy Marples <roy@marples.name>
Tue, 11 Jun 2013 06:22:02 +0000 (06:22 +0000)
committerRoy Marples <roy@marples.name>
Tue, 11 Jun 2013 06:22:02 +0000 (06:22 +0000)
dhcp6.c

diff --git a/dhcp6.c b/dhcp6.c
index 7104172f5f768466c7a152ae81e18de79bee3c96..99fd63372d468c0d8200687699d6b19b07deb85d 100644 (file)
--- a/dhcp6.c
+++ b/dhcp6.c
@@ -924,9 +924,8 @@ dhcp6_startdiscover(void *arg)
        struct interface *ifp;
        struct dhcp6_state *state;
 
-       syslog(LOG_INFO, "%s: soliciting a DHCPv6 lease", ifp->name);
-
        ifp = arg;
+       syslog(LOG_INFO, "%s: soliciting a DHCPv6 lease", ifp->name);
        state = D6_STATE(ifp);
        state->state = DH6S_DISCOVER;
        state->start_uptime = uptime();