← Commit list

6e9e6d8fb

Denys Vlasenko
Denys Vlasenko
2018-01-16
SUCCESS Duration: 142s

Subject

udhcpc6: fix lease time staying very small because -d was not specified

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/udhcp/d6_dhcpc.c+4 -0
@@ -1706,6 +1706,10 @@ int udhcpc6_main(int argc UNUSED_PARAM, char **argv)
bb_error_msg("%s obtained, lease time %u",
"prefix", /*inet_ntoa(temp_addr),*/ (unsigned)lease_seconds);
}
+ if (!address_timeout)
+ address_timeout = prefix_timeout;
+ if (!prefix_timeout)
+ prefix_timeout = address_timeout;
timeout = address_timeout > prefix_timeout ? prefix_timeout : address_timeout;
/* paranoia: must not be too small */
if (timeout < 0x10)