From: Roy Marples Date: Thu, 2 Jul 2015 13:04:15 +0000 (+0000) Subject: Fix testing reporting the DHCP lease. X-Git-Tag: v6.9.1~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=637be715071b8e1f4d756695c801b9757b052abb;p=thirdparty%2Fdhcpcd.git Fix testing reporting the DHCP lease. --- diff --git a/script.c b/script.c index be1e3ad3..c76875fa 100644 --- 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