summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bgpd/bgp_route.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index aa2c3a6a56..ed38f61d9a 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -11704,10 +11704,9 @@ int bgp_show_table_rd(struct vty *vty, struct bgp *bgp, afi_t afi, safi_t safi,
memcpy(&prd, dest_p, sizeof(struct prefix_rd));
prefix_rd2str(&prd, rd, sizeof(rd), bgp->asnotation);
- bgp_show_table(vty, bgp, afi, safi, itable, type, output_arg,
- rd, next == NULL, &output_cum,
- &total_cum, &json_header_depth,
- show_flags, RPKI_NOT_BEING_USED);
+ bgp_show_table(vty, bgp, afi, safi, itable, type, output_arg, rd,
+ !bgp_dest_get_bgp_table_info(next), &output_cum, &total_cum,
+ &json_header_depth, show_flags, RPKI_NOT_BEING_USED);
if (next == NULL)
show_msg = false;
}