]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Always unlink the lease file on ARP failure so we never rebind the failed address.
authorRoy Marples <roy@marples.name>
Fri, 9 Oct 2009 19:23:50 +0000 (19:23 +0000)
committerRoy Marples <roy@marples.name>
Fri, 9 Oct 2009 19:23:50 +0000 (19:23 +0000)
arp.c

diff --git a/arp.c b/arp.c
index e72ca82a03cf4da3399abb51354403bdd01baa73..15d998253cc4078ad927fbfb58eb8f24dd81616b 100644 (file)
--- 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);