diff options
author | Daniel Mack <github@zonque.org> | 2016-02-15 16:50:55 +0100 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2016-02-15 16:50:55 +0100 |
commit | 251b4cb6a256d5766ff5b47a4be9057934fe528d (patch) | |
tree | 1059b6a34b5acf4ee7cee3befb0565d6afe09090 /src/libsystemd-network/sd-dhcp-client.c | |
parent | 8eff97a103581750d90c7e0c2f984dc261226ccc (diff) | |
parent | 8ecdcb5525c94ffa6ed206e6250b3e51803883eb (diff) |
Merge pull request #2620 from bengal/assert-sd-event-now
dhcp: assert the success of sd_event_now()
Diffstat (limited to 'src/libsystemd-network/sd-dhcp-client.c')
-rw-r--r-- | src/libsystemd-network/sd-dhcp-client.c | 2 |
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; } |