From: Roy Marples Date: Thu, 19 Feb 2009 19:50:04 +0000 (+0000) Subject: Ensure we continue after we fail to send a packet. X-Git-Tag: v4.0.12~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20a0ee9eb06f7a1c5edc86bd8406d5a64d57095d;p=thirdparty%2Fdhcpcd.git Ensure we continue after we fail to send a packet. --- diff --git a/client.c b/client.c index 8b511c36..779cb0dd 100644 --- 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;