]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix IPV4LL
authorRoy Marples <roy@marples.name>
Thu, 1 May 2008 19:38:10 +0000 (19:38 +0000)
committerRoy Marples <roy@marples.name>
Thu, 1 May 2008 19:38:10 +0000 (19:38 +0000)
client.c

index ca13cb49562a5d88cb4f322b92ea4a76b66efefa..c7694e5863b174fd0112df24e605dafcd4e2ea28 100644 (file)
--- a/client.c
+++ b/client.c
@@ -832,7 +832,7 @@ handle_timeout(struct if_state *state, const struct options *options)
                }
 
 #ifdef ENABLE_IPV4LL
-               if (state->options & DHCPCD_IPV4LL && gotlease != -1) {
+               if (state->options & DHCPCD_IPV4LL && gotlease != 0) {
                        logger(LOG_INFO, "probing for an IPV4LL address");
                        errno = 0;
                        gotlease = ipv4ll_get_address(iface, lease);