Commit b98415c5 authored by David S. Miller's avatar David S. Miller

[IPV6]: Cure typo in ipv6_addr_prefix.

parent a954eec8
...@@ -580,7 +580,7 @@ static void ipv6_addr_prefix(struct in6_addr *pfx, ...@@ -580,7 +580,7 @@ static void ipv6_addr_prefix(struct in6_addr *pfx,
int b = plen&0x7; int b = plen&0x7;
int o = plen>>3; int o = plen>>3;
memcpy(prefix, addr, o); memcpy(pfx->s6_addr, addr, o);
if (o < 16) if (o < 16)
memset(pfx->s6_addr + o, 0, 16 - o); memset(pfx->s6_addr + o, 0, 16 - o);
if (b != 0) if (b != 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment