]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Discard addresses if expired on reboot
authorRoy Marples <roy@marples.name>
Tue, 13 Nov 2012 17:28:47 +0000 (17:28 +0000)
committerRoy Marples <roy@marples.name>
Tue, 13 Nov 2012 17:28:47 +0000 (17:28 +0000)
dhcp6.c

diff --git a/dhcp6.c b/dhcp6.c
index 53fcddef23650eae5ce2804b98878abedf3d446f..9f22de0a7b8dc3f800fb3fe33d8bf9e0344f7b4e 100644 (file)
--- a/dhcp6.c
+++ b/dhcp6.c
@@ -1097,6 +1097,7 @@ dhcp6_readlease(struct interface *ifp)
        gettimeofday(&now, NULL);
        if ((time_t)state->expire < now.tv_sec - st.st_mtime) {
                syslog(LOG_DEBUG, "%s: discarding expired lease", ifp->name);
+               dhcp6_freedrop_addrs(ifp, 0);
                goto ex;
        }