From: Roy Marples Date: Wed, 27 Jan 2010 11:51:30 +0000 (+0000) Subject: Clear leased address when discarding. X-Git-Tag: v5.1.5~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2b7a383452890f2db72de9500063da36ea5981c;p=thirdparty%2Fdhcpcd.git Clear leased address when discarding. Another fix for #185. --- diff --git a/dhcpcd.c b/dhcpcd.c index b91a02e0..1e402f04 100644 --- a/dhcpcd.c +++ b/dhcpcd.c @@ -1171,6 +1171,7 @@ start_interface(void *arg) "%s: discarding expired lease", iface->name); free(iface->state->offer); iface->state->offer = NULL; + iface->state->lease.addr.s_addr = 0; } else { l = now.tv_sec - st.st_mtime; iface->state->lease.leasetime -= l;