From 4038e8046d5ac33e44809bd3b0ae4d872d9af213 Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Mon, 29 May 2017 19:41:40 -0300 Subject: [PATCH] zebra: fix processing of labeled ipv6 routes We're incrementing nh_count twice for the same nexthop. Signed-off-by: Renato Westphal --- zebra/zserv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra/zserv.c b/zebra/zserv.c index 921e500304..e93299d622 100644 --- a/zebra/zserv.c +++ b/zebra/zserv.c @@ -1609,7 +1609,7 @@ zread_ipv6_add (struct zserv *client, u_short length, struct zebra_vrf *zvrf) if (CHECK_FLAG (message, ZAPI_MESSAGE_LABEL)) { label = (mpls_label_t)stream_getl (s); - labels[nh_count++] = label; + labels[nh_count] = label; } nexthops[nh_count++] = nhop_addr; } -- 2.39.5