From: Roy Marples Date: Tue, 30 Aug 2022 16:23:27 +0000 (+0100) Subject: DHCP: Only test not BOUND when finishing DAD X-Git-Tag: v9.5.0~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ec87730b9c988c6c9db82025eb545b251cfa085d;p=thirdparty%2Fdhcpcd.git DHCP: Only test not BOUND when finishing DAD This fixes using a last lease on initial boot when the DHCP server is not present. --- diff --git a/src/dhcp.c b/src/dhcp.c index fbed2f3c..ce3b87c8 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -2005,7 +2005,7 @@ dhcp_finish_dad(struct interface *ifp, struct in_addr *ia) { struct dhcp_state *state = D_STATE(ifp); - if (state->state != DHS_PROBE) + if (state->state == DHS_BOUND) return; if (state->offer == NULL || state->offer->yiaddr != ia->s_addr) return;