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>
This commit is contained in:
Brian Haley 2009-10-07 13:58:01 -07:00 committed by David S. Miller
parent 125a77ed9f
commit 86c36ce45d

View File

@ -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;