]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix a boo boo
authorRoy Marples <roy@marples.name>
Tue, 24 Oct 2017 22:33:27 +0000 (23:33 +0100)
committerRoy Marples <roy@marples.name>
Tue, 24 Oct 2017 22:33:27 +0000 (23:33 +0100)
src/arp.c

index fd3cdfe307868884cafc9d7cc744aa81185c701c..77a1dc3d96a79699154c3806330c48cf7628ad89 100644 (file)
--- a/src/arp.c
+++ b/src/arp.c
@@ -208,7 +208,7 @@ arp_read(void *arg)
                }
                arp_packet(ifp, buf, (size_t)bytes);
                /* Check we still have a state after processing. */
-               if ((state = ARP_STATE(ifp)))
+               if ((state = ARP_STATE(ifp)) == NULL)
                        break;
        }
 }