From: Roy Marples Date: Sat, 23 May 2015 11:38:13 +0000 (+0000) Subject: Fix ARP checking. X-Git-Tag: v6.9.1~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d196cccb43ea2c3de25c10e385ced79c661ecb6;p=thirdparty%2Fdhcpcd.git Fix ARP checking. --- diff --git a/dhcp.c b/dhcp.c index ae987915..9a6cd27a 100644 --- 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;