]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: resolve crash displaying bgp vrf routing info
authorDon Slice <dslice@cumulusnetworks.com>
Fri, 5 May 2017 13:53:49 +0000 (06:53 -0700)
committerDon Slice <dslice@cumulusnetworks.com>
Fri, 5 May 2017 17:17:28 +0000 (17:17 +0000)
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 <dslice@cumulusnetworks.com>
Reviewed By: Donald Sharp <sharpd@cumulusnetworks.com>

bgpd/bgp_vty.c

index db7e62639c94622554a2d682336b04cd49cc8bbe..9d954e5007ef8c84a3cf0ed620dea9c135463d8d 100644 (file)
@@ -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;