Skip to content

Commit

Permalink
IPv6: use ipv6_addr_copy() in ip6_route_redirect()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Brian Haley authored and David S. Miller committed Oct 7, 2009
1 parent 125a77e commit 86c36ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/ipv6/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 86c36ce

Please sign in to comment.