mirror of
https://github.com/systemd/systemd.git
synced 2025-01-27 18:04:05 +03:00
sd-dhcp-client: log if we fail to set up lease timers
This commit is contained in:
parent
02cd084db7
commit
0411760af1
@ -1382,8 +1382,10 @@ static int client_handle_message(sd_dhcp_client *client, DHCPMessage *message,
|
||||
client->last_addr = client->lease->address;
|
||||
|
||||
r = client_set_lease_timeouts(client);
|
||||
if (r < 0)
|
||||
if (r < 0) {
|
||||
log_dhcp_client(client, "could not set lease timeouts");
|
||||
goto error;
|
||||
}
|
||||
|
||||
r = dhcp_network_bind_udp_socket(client->lease->address,
|
||||
DHCP_PORT_CLIENT);
|
||||
|
Loading…
x
Reference in New Issue
Block a user