summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/sd-dhcp-client.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-12-11 14:43:09 +0100
committerTom Gundersen <teg@jklm.no>2014-12-11 14:43:09 +0100
commit0411760af1ecd0bf4af07bb5775d32deda633600 (patch)
tree91e88c49e5566fcf449de88ea0fb418c71fb5c70 /src/libsystemd-network/sd-dhcp-client.c
parent02cd084db7b50a45a76bcdfe03668061bf7c79d6 (diff)
sd-dhcp-client: log if we fail to set up lease timers
Diffstat (limited to 'src/libsystemd-network/sd-dhcp-client.c')
-rw-r--r--src/libsystemd-network/sd-dhcp-client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-dhcp-client.c b/src/libsystemd-network/sd-dhcp-client.c
index b2b72befbf..9b007bf3cd 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);