From: Brian Haley Date: Wed, 7 Oct 2009 20:58:01 +0000 (-0700) Subject: IPv6: use ipv6_addr_copy() in ip6_route_redirect() X-Git-Tag: MMI-PSA29.97-13-9~25754^2~887 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=86c36ce45dc2e2f022562c6481cd778f4cc381a9;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git IPv6: use ipv6_addr_copy() in ip6_route_redirect() Change ip6_route_redirect() to use ipv6_addr_copy(). Signed-off-by: Brian Haley Signed-off-by: David S. Miller --- diff --git a/net/ipv6/route.c b/net/ipv6/route.c index d6fe7646a8ff..df9432a46ffc 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -1471,9 +1471,10 @@ static struct rt6_info *ip6_route_redirect(struct in6_addr *dest, }, }, }, - .gateway = *gateway, }; + ipv6_addr_copy(&rdfl.gateway, gateway); + if (rt6_need_strict(dest)) flags |= RT6_LOOKUP_F_IFACE;