From ff595214665edcf0564c7f08693e1eacb03f39c4 Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Fri, 12 May 2017 09:19:42 -0300 Subject: [PATCH] bgpd: fix 'show bgp [...] longer-prefixes' Signed-off-by: Renato Westphal --- bgpd/bgp_route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index d3a6e7e906..195e3811d4 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -8421,7 +8421,7 @@ DEFUN (show_ip_bgp, } /* prefix-longer */ if (argv_find(argv, argc, "A.B.C.D/M", &idx) || argv_find(argv, argc, "X:X::X:X/M", &idx)) - return bgp_show_prefix_longer (vty, bgp, argv[idx + 1]->arg, afi, safi, bgp_show_type_prefix_longer); + return bgp_show_prefix_longer (vty, bgp, argv[idx]->arg, afi, safi, bgp_show_type_prefix_longer); if (safi == SAFI_MPLS_VPN) return bgp_show_mpls_vpn (vty, afi, NULL, bgp_show_type_normal, NULL, 0, uj); -- 2.39.5