]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Ensure we continue after we fail to send a packet.
authorRoy Marples <roy@marples.name>
Thu, 19 Feb 2009 19:50:04 +0000 (19:50 +0000)
committerRoy Marples <roy@marples.name>
Thu, 19 Feb 2009 19:50:04 +0000 (19:50 +0000)
client.c

index 8b511c36c1c7d096cfc52a23a4300e83d2953673..779cb0dd727c9118db66572b919158c11c1cb47b 100644 (file)
--- a/client.c
+++ b/client.c
@@ -685,7 +685,9 @@ send_message(struct if_state *state, int type, const struct options *options)
        if (r == -1) {
                state->state = STATE_INIT;
                timerclear(&state->timeout);
-               timerclear(&state->stop);
+               /* We need to set a timeout so we fall through gracefully */
+               state->stop.tv_sec = 1;
+               state->stop.tv_usec = 0;
                do_socket(state, SOCKET_CLOSED);
        }
        return r;