summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2016-02-15 16:11:51 +0100
committerBeniamino Galvani <bgalvani@redhat.com>2016-02-15 16:20:55 +0100
commit8ecdcb5525c94ffa6ed206e6250b3e51803883eb (patch)
tree1059b6a34b5acf4ee7cee3befb0565d6afe09090
parent8eff97a103581750d90c7e0c2f984dc261226ccc (diff)
dhcp: assert the success of sd_event_now()
The function must never fail.
-rw-r--r--src/libsystemd-network/sd-dhcp-client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-dhcp-client.c b/src/libsystemd-network/sd-dhcp-client.c
index cad1a52c09..5fd59f7dd3 100644
--- a/src/libsystemd-network/sd-dhcp-client.c
+++ b/src/libsystemd-network/sd-dhcp-client.c
@@ -958,7 +958,7 @@ static int client_initialize_time_events(sd_dhcp_client *client) {
client->timeout_resend = sd_event_source_unref(client->timeout_resend);
if (client->start_delay) {
- sd_event_now(client->event, clock_boottime_or_monotonic(), &usec);
+ assert_se(sd_event_now(client->event, clock_boottime_or_monotonic(), &usec) >= 0);
usec += client->start_delay;
}