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:
parent
e2975f8548
commit
23976cb928
@ -1001,7 +1001,7 @@ static int client_parse_message(
|
||||
break;
|
||||
}
|
||||
|
||||
pos += sizeof(*option) + optlen;
|
||||
pos += offsetof(DHCP6Option, data) + optlen;
|
||||
}
|
||||
|
||||
if (!clientid) {
|
||||
|
Loading…
Reference in New Issue
Block a user