summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_vty.c
diff options
context:
space:
mode:
authorDon Slice <dslice@cumulusnetworks.com>2017-05-05 15:53:49 +0200
committerDon Slice <dslice@cumulusnetworks.com>2017-05-05 19:17:28 +0200
commit5ef7c5dfdd695a5064e4fe717c2eabc64024100b (patch)
tree70bf65687d915fbba68e23395c5f99a070d8a936 /bgpd/bgp_vty.c
parentMerge pull request #465 from opensourcerouting/cli-fuzzer-fixes (diff)
downloadfrr-5ef7c5dfdd695a5064e4fe717c2eabc64024100b.tar.xz
frr-5ef7c5dfdd695a5064e4fe717c2eabc64024100b.zip
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 <dslice@cumulusnetworks.com> Reviewed By: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to '')
-rw-r--r--bgpd/bgp_vty.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index db7e62639..9d954e500 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;