sd-dhcp6-client: reset Information Refresh Time on stop

This commit is contained in:
Yu Watanabe
2022-02-14 15:02:30 +09:00
parent e1774086a7
commit dd73db7850
+5
View File
@@ -631,6 +631,11 @@ static void client_stop(sd_dhcp6_client *client, int error) {
client->lease = sd_dhcp6_lease_unref(client->lease);
/* Reset IRT here. Otherwise, we cannot restart the client in the information requesting mode,
* even though the lease is freed below. */
client->information_request_time_usec = 0;
client->information_refresh_time_usec = 0;
(void) event_source_disable(client->receive_message);
(void) event_source_disable(client->timeout_resend);
(void) event_source_disable(client->timeout_expire);