[systemd-commits] src/libsystemd-network
Tom Gundersen
tomegun at kemper.freedesktop.org
Thu Dec 11 05:43:17 PST 2014
src/libsystemd-network/sd-dhcp-client.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 0411760af1ecd0bf4af07bb5775d32deda633600
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Dec 11 14:43:09 2014 +0100
sd-dhcp-client: log if we fail to set up lease timers
diff --git a/src/libsystemd-network/sd-dhcp-client.c b/src/libsystemd-network/sd-dhcp-client.c
index b2b72be..9b007bf 100644
--- a/src/libsystemd-network/sd-dhcp-client.c
+++ b/src/libsystemd-network/sd-dhcp-client.c
@@ -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);
More information about the systemd-commits
mailing list