]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Return an error.
authorRoy Marples <roy@marples.name>
Fri, 14 Oct 2016 09:19:42 +0000 (09:19 +0000)
committerRoy Marples <roy@marples.name>
Fri, 14 Oct 2016 09:19:42 +0000 (09:19 +0000)
dhcp.c

diff --git a/dhcp.c b/dhcp.c
index fedd1d0cbb8dd26e78d421f1ba0fc74bcf2065c9..3d1293b29e2443193e4752f404eb9911eb812fb1 100644 (file)
--- 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;