[systemd-devel] [PATCH] sd-dhcp6-client: check return value
Tom Gundersen
teg at jklm.no
Tue Jul 1 14:48:10 PDT 2014
On Tue, Jul 1, 2014 at 10:56 PM, Thomas H.P. Andersen <phomes at gmail.com> wrote:
> From: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
>
> Checking the return values seems to have been forgotten in
> ed6ee21953dac9c78383da00bc4514ece6b75ab5
Applied. Thanks!
Tom
PS
I seem to always just apply your patches, so feel free to push
directly if you feel happy with it (worst case it will get reverted :)
).
> ---
> src/libsystemd-network/sd-dhcp6-client.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/libsystemd-network/sd-dhcp6-client.c b/src/libsystemd-network/sd-dhcp6-client.c
> index 6e00662..1d6e42e 100644
> --- a/src/libsystemd-network/sd-dhcp6-client.c
> +++ b/src/libsystemd-network/sd-dhcp6-client.c
> @@ -254,6 +254,8 @@ static int client_send_message(sd_dhcp6_client *client) {
>
> r = dhcp6_option_append(&opt, &optlen,
> DHCP6_OPTION_RAPID_COMMIT, 0, NULL);
> + if (r < 0)
> + return r;
>
> r = dhcp6_option_append_ia(&opt, &optlen, &client->ia_na);
> if (r < 0)
> --
> 1.9.3
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
More information about the systemd-devel
mailing list