]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix ARP checking.
authorRoy Marples <roy@marples.name>
Sat, 23 May 2015 11:38:13 +0000 (11:38 +0000)
committerRoy Marples <roy@marples.name>
Sat, 23 May 2015 11:38:13 +0000 (11:38 +0000)
dhcp.c

diff --git a/dhcp.c b/dhcp.c
index ae98791570e69c79e7aeecd5640513266c5f29b1..9a6cd27a8985454f54a2d59a8f85334ed862447a 100644 (file)
--- a/dhcp.c
+++ b/dhcp.c
@@ -2792,7 +2792,7 @@ dhcp_handledhcp(struct interface *ifp, struct dhcp_message **dhcpp,
                /* If the interface already has the address configured
                 * then we can't ARP for duplicate detection. */
                ia = ipv4_findaddr(ifp->ctx, &addr);
-               if (ia) {
+               if (ia == NULL) {
                        astate = arp_new(ifp, &addr);
                        if (astate) {
                                astate->probed_cb = dhcp_arp_probed;