summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-10-14 09:19:42 +0000
committerRoy Marples <roy@marples.name>2016-10-14 09:19:42 +0000
commit5a4f7412ab2362a4dca470c7d4b0d2e87c8d42c5 (patch)
tree0b14b0d2fec1f3afaee383f7bc91c5a7a4628f42
parent9bdb3d38f0f7743bd11bd14c6a4c2bb379934927 (diff)
downloaddhcpcd-5a4f7412ab2362a4dca470c7d4b0d2e87c8d42c5.tar.xz
Return an error.
-rw-r--r--dhcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcp.c b/dhcp.c
index fedd1d0c..3d1293b2 100644
--- a/dhcp.c
+++ b/dhcp.c
@@ -2356,7 +2356,7 @@ dhcp_arp_address(struct interface *ifp)
* then we can't ARP for duplicate detection. */
ia = ipv4_findaddr(ifp->ctx, &addr);
if ((astate = arp_new(ifp, &addr)) == NULL)
- return 0;
+ return -1;
astate->probed_cb = dhcp_arp_probed;
astate->conflicted_cb = dhcp_arp_conflicted;