Skip to content

Commit

Permalink
Merge pull request #632 from opensourcerouting/bgpd-show-segfaults
Browse files Browse the repository at this point in the history
bgpd: fix segfault with some show commands
  • Loading branch information
donaldsharp authored May 30, 2017
2 parents c0619fd + 8282ecf commit 8f86e04
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bgpd/bgp_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -8071,7 +8071,6 @@ bgp_show_all_instances_routes_vty (struct vty *vty, afi_t afi, safi_t safi,
{
struct listnode *node, *nnode;
struct bgp *bgp;
struct bgp_table *table;
int is_first = 1;

if (use_json)
Expand All @@ -8097,9 +8096,7 @@ bgp_show_all_instances_routes_vty (struct vty *vty, afi_t afi, safi_t safi,
? "Default" : bgp->name,
VTY_NEWLINE);
}
table = bgp->rib[afi][safi];
bgp_show_table (vty, bgp, table,
bgp_show_type_normal, NULL, use_json);
bgp_show (vty, bgp, afi, safi, bgp_show_type_normal, NULL, use_json);

}

Expand Down

0 comments on commit 8f86e04

Please sign in to comment.