]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
DHCP: reason is BOUND when recovering from an expired extended lease
authorRoy Marples <roy@marples.name>
Sun, 30 Aug 2020 08:41:47 +0000 (09:41 +0100)
committerRoy Marples <roy@marples.name>
Sun, 30 Aug 2020 08:41:47 +0000 (09:41 +0100)
src/dhcp.c

index 0f863d6dbf47287192cc279f2d72aab90ebb424b..63045aea1ae2a6485f52830fce0509666149c070 100644 (file)
@@ -2284,7 +2284,9 @@ dhcp_bind(struct interface *ifp)
                return;
        }
        if (state->reason == NULL) {
-               if (state->old && !(state->added & STATE_FAKE)) {
+               if (state->old &&
+                   !(state->added & (STATE_FAKE | STATE_EXPIRED)))
+               {
                        if (state->old->yiaddr == state->new->yiaddr &&
                            lease->server.s_addr &&
                            state->state != DHS_REBIND)