]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix testing reporting the DHCP lease.
authorRoy Marples <roy@marples.name>
Thu, 2 Jul 2015 13:04:15 +0000 (13:04 +0000)
committerRoy Marples <roy@marples.name>
Thu, 2 Jul 2015 13:04:15 +0000 (13:04 +0000)
script.c

index be1e3ad317e050d1e9d6ca7caa710755f0b42243..c76875faf98874f9dd84e89f26719852a7a8ee1d 100644 (file)
--- a/script.c
+++ b/script.c
@@ -260,10 +260,10 @@ make_env(const struct interface *ifp, const char *reason, char ***argv)
                        ra = 1;
 #endif
 #ifdef INET
-               else if (state->added != STATE_ADDED)
-                       ipv4ll = 1;
-               else
+               else if (state->added)
                        dhcp = 1;
+               else
+                       ipv4ll = 1;
 #endif
        }
 #ifdef INET6