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:
parent
b539437a05
commit
1eeddba492
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user