From: Yu Watanabe Date: Sun, 6 Feb 2022 13:17:43 +0000 (+0900) Subject: sd-dhcp6-client: add missing one more error handling X-Git-Tag: v251-rc1~291^2~46 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bfa1139af4404420f432c19795b10f37985d16f4;p=thirdparty%2Fsystemd.git sd-dhcp6-client: add missing one more error handling --- diff --git a/src/libsystemd-network/sd-dhcp6-client.c b/src/libsystemd-network/sd-dhcp6-client.c index e597b3bcaf9..3cdaf491561 100644 --- a/src/libsystemd-network/sd-dhcp6-client.c +++ b/src/libsystemd-network/sd-dhcp6-client.c @@ -1297,7 +1297,7 @@ static int client_set_state(sd_dhcp6_client *client, DHCP6State state) { r = sd_event_now(client->event, clock_boottime_or_monotonic(), &time_now); if (r < 0) - return r; + goto error; if (!client->receive_message) { r = sd_event_add_io(client->event, &client->receive_message,