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: v10.0.0~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27f444f85b7d859286dc1735201c139ae493b52b;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 2f221bc7..c72135ec 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;