From 1eeddba492bafbfc57a87a5012f15c8bd9867829 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sun, 21 Jan 2018 19:27:27 +0900 Subject: [PATCH] sd-dhcp6-client: do not refer uninitialized variable Fixes CID #1385308. --- src/libsystemd-network/sd-dhcp6-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsystemd-network/sd-dhcp6-client.c b/src/libsystemd-network/sd-dhcp6-client.c index f98a18268f9..25b054e2526 100644 --- a/src/libsystemd-network/sd-dhcp6-client.c +++ b/src/libsystemd-network/sd-dhcp6-client.c @@ -948,7 +948,7 @@ static int client_parse_message( pos += sizeof(*option) + optlen; } - if (r < 0 || !clientid) { + if (!clientid) { log_dhcp6_client(client, "%s has incomplete options", dhcp6_message_type_to_string(message->type)); return -EINVAL; -- 2.47.3