sd-dhcp6-client: check return value

Checking the return values seems to have been forgotten in
ed6ee21953
This commit is contained in:
Thomas Hindoe Paaboel Andersen 2014-07-01 22:56:31 +02:00 committed by Tom Gundersen
parent 72165d6191
commit 926695f1b5

View File

@ -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)