From: Roy Marples Date: Thu, 1 Jan 2015 20:49:10 +0000 (+0000) Subject: Only release the DHCPv6 lease when dropping it. X-Git-Tag: v6.7.0~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4313d1e931e30d107e5b4d96cc7b655dac6ca944;p=thirdparty%2Fdhcpcd.git Only release the DHCPv6 lease when dropping it. Fixes [bc15b90f7a] --- diff --git a/dhcp6.c b/dhcp6.c index 5b24c6b7..a3905722 100644 --- a/dhcp6.c +++ b/dhcp6.c @@ -3289,7 +3289,7 @@ dhcp6_freedrop(struct interface *ifp, int drop, const char *reason) state = D6_STATE(ifp); if (state) { dhcp_auth_reset(&state->auth); - if (options & DHCPCD_RELEASE) { + if (drop && options & DHCPCD_RELEASE) { if (ifp->carrier == LINK_UP) dhcp6_startrelease(ifp); unlink(state->leasefile);