summaryrefslogtreecommitdiff
path: root/src/libsystemd-network
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-07-01 22:56:31 +0200
committerTom Gundersen <teg@jklm.no>2014-07-01 23:46:51 +0200
commit926695f1b5f9395eeb416cc2f478a9cf75fdbeb4 (patch)
tree9e5a918232fdc4e8ba34faaf30581dfc81afd109 /src/libsystemd-network
parent72165d619173e9d17190180d71a023d9d4f23301 (diff)
sd-dhcp6-client: check return value
Checking the return values seems to have been forgotten in ed6ee21953dac9c78383da00bc4514ece6b75ab5
Diffstat (limited to 'src/libsystemd-network')
-rw-r--r--src/libsystemd-network/sd-dhcp6-client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd-network/sd-dhcp6-client.c b/src/libsystemd-network/sd-dhcp6-client.c
index 6e006624ca..1d6e42ec83 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)