]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
We should remove the leasefile for IPv4LL addresses also on release.
authorRoy Marples <roy@marples.name>
Sat, 11 Jul 2009 21:19:42 +0000 (21:19 +0000)
committerRoy Marples <roy@marples.name>
Sat, 11 Jul 2009 21:19:42 +0000 (21:19 +0000)
dhcpcd.c

index 25dbd9e88617472f2409c7bdb70b2921c7abfdbf..a4ab9d6a67454d9ff7fe437f5b1e8dfa2b83d4f1 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -708,8 +708,8 @@ send_release(struct interface *iface)
                open_sockets(iface);
                send_message(iface, DHCP_RELEASE, NULL);
                drop_config(iface, "RELEASE");
-               unlink(iface->leasefile);
        }
+       unlink(iface->leasefile);
 }
 
 static void