From: Don Slice Date: Fri, 5 May 2017 13:53:49 +0000 (-0700) Subject: bgpd: resolve crash displaying bgp vrf routing info X-Git-Tag: frr-3.0-rc0~45^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=5ef7c5dfdd695a5064e4fe717c2eabc64024100b;p=mirror%2Ffrr.git bgpd: resolve crash displaying bgp vrf routing info Problem uncovered with crash when entering the command "show ip bgp vrf vrf1001 0.0.0.0". The crash was caused by a mistake incrementing the index value in the vrf/view case. Manual testing completed and failing test case now passes successfully. Ticket: CM-16223 Signed-off-by: Don Slice Reviewed By: Donald Sharp --- diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index db7e62639c..9d954e5007 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -262,7 +262,6 @@ bgp_vty_find_and_parse_afi_safi_bgp (struct vty *vty, struct cmd_token **argv, i if (argv_find (argv, argc, "view", idx) || argv_find (argv, argc, "vrf", idx)) { vrf_name = argv[*idx + 1]->arg; - *idx += 2; if (strmatch (vrf_name, "all")) *bgp = NULL;