diff options
| author | Louis Scalbert <louis.scalbert@6wind.com> | 2025-02-12 12:50:42 +0100 |
|---|---|---|
| committer | Louis Scalbert <louis.scalbert@6wind.com> | 2025-02-12 13:34:21 +0100 |
| commit | cf0269649cdd09b8d3f2dd8815caf6ecf9cdeef9 (patch) | |
| tree | c6f5ca7ca3befa48f034eee5ca4549fc4e321c5d /pimd/pim_cmd.c | |
| parent | d275f551c330c9a8d808081547cfe1ce410f3db0 (diff) | |
bgpd: fix incorrect json in bgp_show_table_rd
In bgp_show_table_rd(), the is_last argument is determined using the
expression "next == NULL" to check if the RD table is the last one. This
helps ensure proper JSON formatting.
However, if next is not NULL but is no longer associated with a BGP
table, the JSON output becomes malformed.
Updates the condition to also verify the existence of the next bgp_dest
table.
Fixes: 1ae44dfcba ("bgpd: unify 'show bgp' with RD with normal unicast bgp show")
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Diffstat (limited to 'pimd/pim_cmd.c')
0 files changed, 0 insertions, 0 deletions
