]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix off by one MAX_CONFLICTS error.
authorRoy Marples <roy@marples.name>
Tue, 21 Oct 2014 18:33:44 +0000 (18:33 +0000)
committerRoy Marples <roy@marples.name>
Tue, 21 Oct 2014 18:33:44 +0000 (18:33 +0000)
ipv4ll.c

index a10f886e9a817c4a6991503f443a6c6493da3a9e..ab4b5c0886c87f0874182d5bb3ddb1595fbd67db 100644 (file)
--- a/ipv4ll.c
+++ b/ipv4ll.c
@@ -177,7 +177,7 @@ ipv4ll_handle_failure(void *arg)
        free(state->offer);
        state->offer = NULL;
        eloop_timeout_delete(ifp->ctx->eloop, NULL, ifp);
-       if (++state->conflicts > MAX_CONFLICTS) {
+       if (++state->conflicts >= MAX_CONFLICTS) {
                syslog(LOG_ERR, "%s: failed to acquire an IPv4LL address",
                    ifp->name);
                if (ifp->options->options & DHCPCD_DHCP) {