Skip to content

Commit 67af1db

Browse files
authored
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.
1 parent 882614a commit 67af1db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dhcp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2384,8 +2384,8 @@ dhcp_bound(struct interface *ifp, uint8_t old_state)
23842384
if (ctx->options & DHCPCD_MANAGER ||
23852385
ifp->options->options & DHCPCD_STATIC ||
23862386
(state->old != NULL &&
2387-
state->old->yiaddr == state->new->yiaddr) ||
2388-
(old_state & STATE_ADDED && !(old_state & STATE_FAKE)))
2387+
state->old->yiaddr == state->new->yiaddr &&
2388+
old_state & STATE_ADDED && !(old_state & STATE_FAKE)))
23892389
return;
23902390

23912391
dhcp_closeinet(ifp);

0 commit comments

Comments
 (0)