From: Roy Marples Date: Tue, 13 Nov 2012 17:28:47 +0000 (+0000) Subject: Discard addresses if expired on reboot X-Git-Tag: v5.99.3~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59faba640e5a155669a25d2c5dd60ab7c1f9bf67;p=thirdparty%2Fdhcpcd.git Discard addresses if expired on reboot --- diff --git a/dhcp6.c b/dhcp6.c index 53fcddef..9f22de0a 100644 --- 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; }