]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
dhcp: don't log wrong xid when there is no state
authorRoy Marples <roy@marples.name>
Mon, 18 Sep 2017 09:07:24 +0000 (10:07 +0100)
committerRoy Marples <roy@marples.name>
Mon, 18 Sep 2017 09:07:24 +0000 (10:07 +0100)
src/dhcp.c

index 959d58f4ac5c6e6f5259bd7a9ac5ca09e8dbd1ab..27951ae404fad7d5b85b171a87edb2257c4dd141 100644 (file)
@@ -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));