diff options
| author | Roy Marples <roy@marples.name> | 2009-02-19 19:50:04 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2009-02-19 19:50:04 +0000 |
| commit | 20a0ee9eb06f7a1c5edc86bd8406d5a64d57095d (patch) | |
| tree | 001e7eb5b1ee59d4cfbb9fe222ec1e78ffdb8f23 | |
| parent | 8ef3678112526ff3712ecbbb0c567473a7f24e3e (diff) | |
| download | dhcpcd-20a0ee9eb06f7a1c5edc86bd8406d5a64d57095d.tar.xz | |
Ensure we continue after we fail to send a packet.
| -rw-r--r-- | client.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |
