]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: fix crash in "show ip bgp ... all alias ALIAS"
authorRenato Westphal <renato@opensourcerouting.org>
Wed, 28 Jul 2021 01:29:43 +0000 (22:29 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Tue, 23 Nov 2021 17:27:25 +0000 (14:27 -0300)
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 <renato@opensourcerouting.org>
bgpd/bgp_route.c

index b79fe778ae4cb5cb8836e2aed9440b377d60fed3..aec1719fdf8021e29b59ae4f745212726ac0dc6f 100644 (file)
@@ -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,