From db58b09fea7b64453a243584aa0f8e0337767642 Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Tue, 27 Jul 2021 22:29:43 -0300 Subject: [PATCH] bgpd: fix crash in "show ip bgp ... all alias ALIAS" Like done in the other places (when "all" isn't used), pass the actual alias name to bgp_show() instead of a null pointer. Signed-off-by: Renato Westphal --- bgpd/bgp_route.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index b79fe778ae..aec1719fdf 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -12342,6 +12342,11 @@ DEFPY(show_ip_bgp_json, show_ip_bgp_json_cmd, sh_type, prefix_version, show_flags, rpki_target_state); + else if (bgp_community_alias) + return bgp_show( + vty, bgp, afi, safi, sh_type, + bgp_community_alias, show_flags, + rpki_target_state); else bgp_show(vty, bgp, afi, safi, sh_type, NULL, show_flags, -- 2.39.5