1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-06 17:18:12 +03:00

dhcp6: use offsetof instead of sizeof

This commit is contained in:
Yu Watanabe 2018-09-27 23:31:34 +09:00
parent e2975f8548
commit 23976cb928

View File

@ -1001,7 +1001,7 @@ static int client_parse_message(
break;
}
pos += sizeof(*option) + optlen;
pos += offsetof(DHCP6Option, data) + optlen;
}
if (!clientid) {