summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/sd-dhcp-client.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-06-17 20:04:17 +0200
committerTom Gundersen <teg@jklm.no>2015-06-17 20:04:17 +0200
commitb3d4ef81f6aaac3df8d15ad0d2e3f78b74c00d28 (patch)
tree1c92123e040d4efc7abfda4fbb643fd4d0eef903 /src/libsystemd-network/sd-dhcp-client.c
parentb0fc0763d38a0ad227c0f1d31662449696b13cf0 (diff)
parent144c348883a71ecc580ecf11967ceb9f304bd9da (diff)
Merge pull request #267 from phomes/master
sd-dhcp-client: readd deleted error check
Diffstat (limited to 'src/libsystemd-network/sd-dhcp-client.c')
-rw-r--r--src/libsystemd-network/sd-dhcp-client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd-network/sd-dhcp-client.c b/src/libsystemd-network/sd-dhcp-client.c
index 6853038b67..6a0d270739 100644
--- a/src/libsystemd-network/sd-dhcp-client.c
+++ b/src/libsystemd-network/sd-dhcp-client.c
@@ -928,6 +928,8 @@ static int client_initialize_time_events(sd_dhcp_client *client) {
r = sd_event_source_set_priority(client->timeout_resend,
client->event_priority);
+ if (r < 0)
+ goto error;
r = sd_event_source_set_description(client->timeout_resend, "dhcp4-resend-timer");
if (r < 0)