diff options
author | Tom Gundersen <teg@jklm.no> | 2014-12-11 14:43:09 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-12-11 14:43:09 +0100 |
commit | 0411760af1ecd0bf4af07bb5775d32deda633600 (patch) | |
tree | 91e88c49e5566fcf449de88ea0fb418c71fb5c70 | |
parent | 02cd084db7b50a45a76bcdfe03668061bf7c79d6 (diff) |
sd-dhcp-client: log if we fail to set up lease timers
-rw-r--r-- | src/libsystemd-network/sd-dhcp-client.c | 4 |
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); |