]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-dhcp-client: readd deleted error check 267/head
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Wed, 17 Jun 2015 16:09:31 +0000 (18:09 +0200)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Wed, 17 Jun 2015 17:11:18 +0000 (19:11 +0200)
Seems to have been removed by mistake in:
9021bb9f935c93b516b10c88db2a212a9e3a8140

src/libsystemd-network/sd-dhcp-client.c

index 6853038b678f31170a7bedeff696f8c0b12f0f48..6a0d270739df4cef7951aaa46b8c8547e18c5ea3 100644 (file)
@@ -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)