Skip to content

Commit

Permalink
dhcp6: use offsetof instead of sizeof
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwata committed Sep 27, 2018
1 parent e2975f8 commit 23976cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsystemd-network/sd-dhcp6-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ static int client_parse_message(
break;
}

pos += sizeof(*option) + optlen;
pos += offsetof(DHCP6Option, data) + optlen;
}

if (!clientid) {
Expand Down

0 comments on commit 23976cb

Please sign in to comment.