From: Beniamino Galvani Date: Mon, 21 Jul 2025 12:24:27 +0000 (+0200) Subject: sd-dhcp6-lease: fix calculation of t2 X-Git-Tag: v258-rc1~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f5eaeb143dd9e58503980ae5f63dd78c463180e;p=thirdparty%2Fsystemd.git sd-dhcp6-lease: fix calculation of t2 sd_dhcp6_lease_get_t2() was returning t1, and so the client was going directly to the rebind state skipping the lease renewal. Reported-by: Jaime Caamano Fixes: 394fac52d0e7 ("sd-dhcp6-client: introduce sd_dhcp6_lease_get_t1() and friends") --- diff --git a/src/libsystemd-network/sd-dhcp6-lease.c b/src/libsystemd-network/sd-dhcp6-lease.c index 4d8df252c87..80ae1b775f4 100644 --- a/src/libsystemd-network/sd-dhcp6-lease.c +++ b/src/libsystemd-network/sd-dhcp6-lease.c @@ -115,7 +115,7 @@ static void dhcp6_lease_set_lifetime(sd_dhcp6_lease *lease) { } DEFINE_GET_TIME_FUNCTIONS(t1, lifetime_t1); -DEFINE_GET_TIME_FUNCTIONS(t2, lifetime_t1); +DEFINE_GET_TIME_FUNCTIONS(t2, lifetime_t2); DEFINE_GET_TIME_FUNCTIONS(valid_lifetime, lifetime_valid); static void dhcp6_lease_set_server_address(sd_dhcp6_lease *lease, const struct in6_addr *server_address) {