Mercurial > hg > dhcpcd
changeset 1904:95b690395b34 draft
Destroy lease file if releasing.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Thu, 04 Apr 2013 23:29:54 +0000 |
| parents | 783adb9e45cc |
| children | 6ce33af38ef4 |
| files | dhcp.c |
| diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dhcp.c Thu Apr 04 23:25:31 2013 +0000 +++ b/dhcp.c Thu Apr 04 23:29:54 2013 +0000 @@ -2019,6 +2019,8 @@ if (state == NULL) return; eloop_timeouts_delete(iface, dhcp_expire, NULL); + if (iface->options->options & DHCPCD_RELEASE) + unlink(state->leasefile); free(state->old); state->old = state->new; state->new = NULL;
