commit | 86c36ce45dc2e2f022562c6481cd778f4cc381a9 | [log] [tgz] |
---|---|---|
author | Brian Haley <brian.haley@hp.com> | Wed Oct 07 13:58:01 2009 -0700 |
committer | David S. Miller <davem@davemloft.net> | Wed Oct 07 13:58:01 2009 -0700 |
tree | c08f75a6b6ea4416c73ef14813ee120bef8d0f7b | |
parent | 125a77ed9fbd21d1277f53e9ed6b39ad3d34e613 [diff] [blame] |
IPv6: use ipv6_addr_copy() in ip6_route_redirect() Change ip6_route_redirect() to use ipv6_addr_copy(). Signed-off-by: Brian Haley <brian.haley@hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index d6fe764..df9432a 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c
@@ -1471,9 +1471,10 @@ }, }, }, - .gateway = *gateway, }; + ipv6_addr_copy(&rdfl.gateway, gateway); + if (rt6_need_strict(dest)) flags |= RT6_LOOKUP_F_IFACE;