diff options
author | Tom Gundersen <teg@jklm.no> | 2015-11-17 13:14:36 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-11-17 13:26:51 +0100 |
commit | fb84d8966e5ce49b0c705768bb4da4956c4e529a (patch) | |
tree | c22204fc5d0fb0865914a3dff540cfd0f48a8e64 /src/network | |
parent | 6506063f8f68f589040cfcc138d3f61269fb2a63 (diff) |
networkd: ndisc - fix token support
Fixes CID#1338680. Thanks to Thomas Andersen.
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/networkd-ndisc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-ndisc.c b/src/network/networkd-ndisc.c index 37c6ec2049..a2efac78f1 100644 --- a/src/network/networkd-ndisc.c +++ b/src/network/networkd-ndisc.c @@ -75,7 +75,7 @@ static void ndisc_prefix_autonomous_handler(sd_ndisc *nd, const struct in6_addr address->family = AF_INET6; address->in_addr.in6 = *prefix; if (in_addr_is_null(AF_INET6, (const union in_addr_union *) &link->network->ipv6_token) == 0) - memcpy(&address->in_addr.in6 + 8, &link->network->ipv6_token + 8, 8); + memcpy(((char *)&address->in_addr.in6) + 8, ((char *)&link->network->ipv6_token) + 8, 8); else { /* see RFC4291 section 2.5.1 */ address->in_addr.in6.__in6_u.__u6_addr8[8] = link->mac.ether_addr_octet[0]; |