From: Roy Marples Date: Mon, 18 Sep 2017 09:07:24 +0000 (+0100) Subject: dhcp: don't log wrong xid when there is no state X-Git-Tag: v7.0.0-rc2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c49eb2d623dbf7c85c9ab383c2e87bb9c9fa521a;p=thirdparty%2Fdhcpcd.git dhcp: don't log wrong xid when there is no state --- diff --git a/src/dhcp.c b/src/dhcp.c index 959d58f4..27951ae4 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -2749,7 +2749,7 @@ dhcp_handledhcp(struct interface *ifp, struct bootp *bootp, size_t bootp_len, #endif if (state->xid != ntohl(bootp->xid)) { - if (state->state != DHS_BOUND) + if (state->state != DHS_BOUND && state->state != DHS_NONE) logdebugx("%s: wrong xid 0x%x (expecting 0x%x) from %s", ifp->name, ntohl(bootp->xid), state->xid, inet_ntoa(*from));