summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-05-12 09:19:42 -0300
committerRenato Westphal <renato@opensourcerouting.org>2017-05-12 11:43:32 -0300
commit83540e9861b033d971af7e8da359289dbe25384d (patch)
tree40becbeaa88b39dc18a118086e7a6bf32d760556
parenta153bd94bccbbfd52558a660a9015764c3f4a2a3 (diff)
bgpd: fix 'show bgp [...] longer-prefixes'
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
-rw-r--r--bgpd/bgp_route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 02b029d9ee..dbf969168e 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -8654,7 +8654,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);