]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
We should reset the NAK backoff when we timeout as well
authorRoy Marples <roy@marples.name>
Wed, 7 Nov 2007 10:50:39 +0000 (10:50 +0000)
committerRoy Marples <roy@marples.name>
Wed, 7 Nov 2007 10:50:39 +0000 (10:50 +0000)
client.c

index 8d7b898fa74ca184556f3d82aa2deb7ca31e9e77..611d79d7296b9a0b903fe21624017f610f20ec8f 100644 (file)
--- a/client.c
+++ b/client.c
@@ -498,6 +498,10 @@ int dhcp_run (const options_t *options, int *pidfd)
                        }
                } else if (retval == 0) {
                        /* timed out */
+
+                       /* No NAK, so reset the backoff */
+                       nakoff = 1;
+
                        switch (state) {
                                case STATE_INIT:
                                        if (xid != 0) {