From: Roy Marples Date: Thu, 12 Jun 2008 08:57:29 +0000 (+0000) Subject: On NAK, clear the timer and lease so we init correctly. X-Git-Tag: v4.0.2~280 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df2de15107e89746bcf80d972093e4cb73c08ec4;p=thirdparty%2Fdhcpcd.git On NAK, clear the timer and lease so we init correctly. --- diff --git a/client.c b/client.c index 89302652..aacacb79 100644 --- a/client.c +++ b/client.c @@ -1160,6 +1160,8 @@ handle_dhcp(struct if_state *state, struct dhcp_message **dhcpp, free(addr); state->state = STATE_INIT; state->timeout = 0; + lease->addr.s_addr = 0; + timerclear(&state->stop); /* If we constantly get NAKS then we should slowly back off */ if (state->nakoff > 0) {