提交 86c36ce4 编写于 作者: B Brian Haley 提交者: David S. Miller

IPv6: use ipv6_addr_copy() in ip6_route_redirect()

Change ip6_route_redirect() to use ipv6_addr_copy().
Signed-off-by: NBrian Haley <brian.haley@hp.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册