From 67af1dbe9d01b7c885a8ba91b9f1d4329081d87a Mon Sep 17 00:00:00 2001 From: Doug Nazar Date: Fri, 25 Apr 2025 15:37:54 -0400 Subject: [PATCH] Restore logic on when to open an address specific socket (#502) 850f93b changed the logic while moving things around. Restore the original logic so we open a socket even if the address is the same, so long as it's the first time. --- src/dhcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dhcp.c b/src/dhcp.c index b294bd67..637f5a86 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -2384,8 +2384,8 @@ dhcp_bound(struct interface *ifp, uint8_t old_state) if (ctx->options & DHCPCD_MANAGER || ifp->options->options & DHCPCD_STATIC || (state->old != NULL && - state->old->yiaddr == state->new->yiaddr) || - (old_state & STATE_ADDED && !(old_state & STATE_FAKE))) + state->old->yiaddr == state->new->yiaddr && + old_state & STATE_ADDED && !(old_state & STATE_FAKE))) return; dhcp_closeinet(ifp); -- 2.47.3