diff options
Diffstat (limited to 'src/libsystemd-dhcp/sd-dhcp-client.c')
-rw-r--r-- | src/libsystemd-dhcp/sd-dhcp-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-dhcp/sd-dhcp-client.c b/src/libsystemd-dhcp/sd-dhcp-client.c index 4f41b4c06a..3b4db1d96f 100644 --- a/src/libsystemd-dhcp/sd-dhcp-client.c +++ b/src/libsystemd-dhcp/sd-dhcp-client.c @@ -338,7 +338,7 @@ static int client_send_request(sd_dhcp_client *client, uint16_t secs) { static uint16_t client_update_secs(sd_dhcp_client *client, usec_t time_now) { - client->secs = (time_now - client->start_time) / USEC_PER_SEC; + client->secs = ((time_now - client->start_time) / USEC_PER_SEC) ? : 1; return client->secs; } |