1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-28 02:50:16 +03:00

sd-dhcp6-client: do not refer uninitialized variable

Fixes CID #1385308.
This commit is contained in:
Yu Watanabe 2018-01-21 19:27:27 +09:00
parent b539437a05
commit 1eeddba492

View File

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