mirror of
https://github.com/systemd/systemd.git
synced 2026-08-13 17:08:14 +00:00
dhcp6: use offsetof instead of sizeof
This commit is contained in:
@@ -1001,7 +1001,7 @@ static int client_parse_message(
|
||||
break;
|
||||
}
|
||||
|
||||
pos += sizeof(*option) + optlen;
|
||||
pos += offsetof(DHCP6Option, data) + optlen;
|
||||
}
|
||||
|
||||
if (!clientid) {
|
||||
|
||||
Reference in New Issue
Block a user