Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bgpd: Fix core during received-routes brief json cmd
When a route-map causes a prefix to be denied (with soft-reconfig enabled), executing show bgp nbr xyz received-routes brief json results in invoking peer_adj_routes_brief() where prefix_path_count can be 0 and a premature free of json happens. This free of json was originally intended for a no-op condition i.e. to free up the json objects which are originally allocated and not used. Fixing this. Ticket :#4081784 Signed-off-by: Rajasekar Raja <[email protected]>
- Loading branch information