From b74b77390c06465d2f417342d3005a1dbedb2fb8 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 15 Jun 2020 12:52:55 +0100 Subject: [PATCH] DHCP6: Add requested addresses after freeing all state addresses Otherwise we don't request the correct prefix delegation length for example.... --- src/dhcp6.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dhcp6.c b/src/dhcp6.c index 0e7743e3..70d56a81 100644 --- a/src/dhcp6.c +++ b/src/dhcp6.c @@ -1727,6 +1727,7 @@ dhcp6_fail(struct interface *ifp) if (state->old != NULL) script_runreason(ifp, "EXPIRE6"); dhcp_unlink(ifp->ctx, state->leasefile); + dhcp6_addrequestedaddrs(ifp); } if (!dhcp6_startdiscoinform(ifp)) { @@ -2672,6 +2673,7 @@ ex: free(state->new); state->new = NULL; state->new_len = 0; + dhcp6_addrequestedaddrs(ifp); return bytes == 0 ? 0 : -1; } -- 2.47.2