summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-02-19 19:50:04 +0000
committerRoy Marples <roy@marples.name>2009-02-19 19:50:04 +0000
commit20a0ee9eb06f7a1c5edc86bd8406d5a64d57095d (patch)
tree001e7eb5b1ee59d4cfbb9fe222ec1e78ffdb8f23
parent8ef3678112526ff3712ecbbb0c567473a7f24e3e (diff)
downloaddhcpcd-20a0ee9eb06f7a1c5edc86bd8406d5a64d57095d.tar.xz
Ensure we continue after we fail to send a packet.
-rw-r--r--client.c4
1 files changed, 3 insertions, 1 deletions
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;