]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: fix addr sent in ZEBRA_IPV6_NEXTHOP_LOOKUP
authorHiroshi Yokoi <hiroshi.yokoi.0313@gmail.com>
Tue, 8 Sep 2015 02:52:20 +0000 (11:52 +0900)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Thu, 26 May 2016 15:33:31 +0000 (15:33 +0000)
I found that zebra doesn't set correct IPv6 address in its result because of
using *addr's address.  Although I'm using 0.99.22, the latest version has
also use "&addr".  Shouldn't it use "addr"?

Signed-off-by: Hiroshi Yokoi <hiroshi.yokoi.0313@gmail.com>
Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
(cherry picked from commit 8ccd74c29f5242f312c1e0561497558482c9be65)

zebra/zserv.c

index b84117a0deb66270905de3594c18b4a210d4a0d4..8bc90130be4d7394fd36d26de8b6b2f659fa7943 100644 (file)
@@ -730,7 +730,7 @@ zsend_ipv6_nexthop_lookup (struct zserv *client, struct in6_addr *addr,
 
   /* Fill in result. */
   zserv_create_header (s, ZEBRA_IPV6_NEXTHOP_LOOKUP, vrf_id);
-  stream_put (s, &addr, 16);
+  stream_put (s, addr, 16);
 
   if (rib)
     {