]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
When releasing, remove the delegated addresses.
authorRoy Marples <roy@marples.name>
Tue, 11 Jun 2013 10:13:19 +0000 (10:13 +0000)
committerRoy Marples <roy@marples.name>
Tue, 11 Jun 2013 10:13:19 +0000 (10:13 +0000)
dhcp6.c

diff --git a/dhcp6.c b/dhcp6.c
index a57df2778b1c8900e4d3ff02772b6f555e99e128..dfc8848d1f14e66f4f8b3edc1972ef17d1196f54 100644 (file)
--- a/dhcp6.c
+++ b/dhcp6.c
@@ -2358,6 +2358,7 @@ dhcp6_freedrop(struct interface *ifp, int drop, const char *reason)
                if (ifp->options->options & DHCPCD_RELEASE) {
                        if (ifp->carrier != LINK_DOWN)
                                dhcp6_startrelease(ifp);
+                       dhcp6_delete_delegates(ifp);
                        unlink(state->leasefile);
                }
                dhcp6_freedrop_addrs(ifp, drop, NULL);