Commit 86c36ce4 authored by Brian Haley's avatar Brian Haley Committed by David S. Miller

IPv6: use ipv6_addr_copy() in ip6_route_redirect()

Change ip6_route_redirect() to use ipv6_addr_copy().
Signed-off-by: default avatarBrian Haley <brian.haley@hp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 125a77ed
......@@ -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;
......
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