]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
DHCP6: Don't restart INFORM timers on subsequent failure.
authorRoy Marples <roy@marples.name>
Tue, 18 Nov 2025 12:08:26 +0000 (12:08 +0000)
committerRoy Marples <roy@marples.name>
Tue, 18 Nov 2025 12:08:26 +0000 (12:08 +0000)
src/dhcp6.c

index 2cca6e6dc249eaa565bb992424c0257299ccab2e..913419944e44a7393a435efa97d3ee98040c942c 100644 (file)
@@ -1818,8 +1818,9 @@ dhcp6_startinform(void *arg)
         * merely one facet of the lease as a whole.
         * This poor wording might explain the lack of similar text for INFORM
         * in 18.1.5 because there are no addresses in the INFORM message. */
-       eloop_timeout_add_sec(ifp->ctx->eloop,
-           INF_MAX_RD, dhcp6_failinform, ifp);
+       if (!state->failed)
+               eloop_timeout_add_sec(ifp->ctx->eloop,
+                   INF_MAX_RD, dhcp6_failinform, ifp);
 }
 
 static bool