Subject: [PATCH] IPv6: use ipv6_addr_copy() in ip6_route_redirect()

From: Brian Haley <[email-masked]>
Date: Wed, 07 Oct 2009 11:46:53 -0400

Change ip6_route_redirect() to use ipv6_addr_copy().

Signed-off-by: Brian Haley <[email-masked]>
---

diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index d6fe764..df9432a 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -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;