]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/zebra_fpm_protobuf.c
Fix bug with NH macro in zebra_fpm_protobuf
[mirror_frr.git] / zebra / zebra_fpm_protobuf.c
index 375fde921e7f4051c61466dca4b8606ece70e6b8..bb09aeece65fc44fd3f386a2870d4511597d5e73 100644 (file)
@@ -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;