changeset 5429:4729f8db7842 draft

DHCP: reason is BOUND when recovering from an expired extended lease
author Roy Marples <roy@marples.name>
date Sun, 30 Aug 2020 09:41:47 +0100
parents ab53e42710ae
children c2b796cf7e94
files src/dhcp.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/dhcp.c	Sun Aug 30 09:07:35 2020 +0100
+++ b/src/dhcp.c	Sun Aug 30 09:41:47 2020 +0100
@@ -2284,7 +2284,9 @@
 		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)