]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix timeout of 0 disabling the timeout.
authorRoy Marples <roy@marples.name>
Tue, 11 Aug 2009 20:13:58 +0000 (20:13 +0000)
committerRoy Marples <roy@marples.name>
Tue, 11 Aug 2009 20:13:58 +0000 (20:13 +0000)
dhcpcd.c

index 9bdb8c1c72da9beb356d98f04e25564fa5d80d26..5dc46a9f192d3b8a45bc487e2664f9147a6e2e96 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -1753,7 +1753,7 @@ main(int argc, char **argv)
            (ifc == 0 && options & DHCPCD_LINK && options & DHCPCD_DAEMONISE))
        {
                daemonise();
-       } else if (options & DHCPCD_DAEMONISE) {
+       } else if (options & DHCPCD_DAEMONISE && ifo->timeout > 0) {
                oi = ifo->timeout;
                if (ifo->options & DHCPCD_IPV4LL)
                        oi += 10;