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:
parent
125a77ed9f
commit
86c36ce45d
|
@ -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))
|
if (rt6_need_strict(dest))
|
||||||
flags |= RT6_LOOKUP_F_IFACE;
|
flags |= RT6_LOOKUP_F_IFACE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue