From: Roy Marples Date: Fri, 9 Oct 2009 19:23:50 +0000 (+0000) Subject: Always unlink the lease file on ARP failure so we never rebind the failed address. X-Git-Tag: v5.1.2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=026bea34b949f61b33b4b56a51b2c48d1db9fb84;p=thirdparty%2Fdhcpcd.git Always unlink the lease file on ARP failure so we never rebind the failed address. --- diff --git a/arp.c b/arp.c index e72ca82a..15d99825 100644 --- a/arp.c +++ b/arp.c @@ -82,9 +82,8 @@ handle_arp_failure(struct interface *iface) handle_ipv4ll_failure(iface); return; } - if (iface->state->lease.frominfo) - unlink(iface->leasefile); - else + unlink(iface->leasefile); + if (!iface->state->lease.frominfo) send_decline(iface); close_sockets(iface); delete_timeout(NULL, iface);