mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-25 01:41:30 +00:00
bgpd: Fix crash in a vpn command
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
42afeb280b
commit
41cebd7eff
@ -7865,6 +7865,9 @@ bgp_show_route (struct vty *vty, struct bgp *bgp, const char *ip_str,
|
|||||||
int prefix_check, enum bgp_path_type pathtype,
|
int prefix_check, enum bgp_path_type pathtype,
|
||||||
u_char use_json)
|
u_char use_json)
|
||||||
{
|
{
|
||||||
|
if (!bgp)
|
||||||
|
bgp = bgp_get_default ();
|
||||||
|
|
||||||
return bgp_show_route_in_table (vty, bgp, bgp->rib[afi][safi], ip_str,
|
return bgp_show_route_in_table (vty, bgp, bgp->rib[afi][safi], ip_str,
|
||||||
afi, safi, prd, prefix_check, pathtype,
|
afi, safi, prd, prefix_check, pathtype,
|
||||||
use_json);
|
use_json);
|
||||||
|
Loading…
Reference in New Issue
Block a user