]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix fallback_time option (#562)
authorColin McInnes <colin.mcinnes@vecima.com>
Wed, 3 Dec 2025 09:41:04 +0000 (03:41 -0600)
committerGitHub <noreply@github.com>
Wed, 3 Dec 2025 09:41:04 +0000 (09:41 +0000)
Fallback time option was updating request_time instead of fallback_time.

Resolves #561

src/if-options.c

index 2819113d382745f86aedd0b221a35c7815c40a75..083449b97d38c3241809220e2858988d1ce5b345 100644 (file)
@@ -2546,7 +2546,7 @@ invalid_token:
 #ifdef INET
        case O_FALLBACK_TIME:
                ARG_REQUIRED;
-               ifo->request_time =
+               ifo->fallback_time =
                    (uint32_t)strtou(arg, NULL, 0, 0, UINT32_MAX, &e);
                if (e) {
                        logerrx("invalid fallback time: %s", arg);