From e72e37ade7d3a3f82e8c790338be1ab3eaf6e061 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Fingen?= Date: Mon, 10 Jul 2017 15:16:38 +0200 Subject: [PATCH] Fix bug with NH macro in zebra_fpm_protobuf One occurrence was missing to be adpated the new macro definition for multiple NH recursion levels. --- zebra/zebra_fpm_protobuf.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zebra/zebra_fpm_protobuf.c b/zebra/zebra_fpm_protobuf.c index 375fde921e..bb09aeece6 100644 --- a/zebra/zebra_fpm_protobuf.c +++ b/zebra/zebra_fpm_protobuf.c @@ -145,8 +145,7 @@ create_add_route_message (qpb_allocator_t *allocator, rib_dest_t *dest, { Fpm__AddRoute *msg; int discard; - struct nexthop *nexthop, *tnexthop; - int recursing; + struct nexthop *nexthop; uint num_nhs, u; struct nexthop *nexthops[MULTIPATH_NUM]; @@ -195,7 +194,7 @@ create_add_route_message (qpb_allocator_t *allocator, rib_dest_t *dest, * Figure out the set of nexthops to be added to the message. */ num_nhs = 0; - for (ALL_NEXTHOPS_RO (re->nexthop, nexthop, tnexthop, recursing)) + for (ALL_NEXTHOPS_RO (re->nexthop, nexthop)) { if (num_nhs >= multipath_num) break;