]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: fix 'show bgp [...] longer-prefixes'
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 12 May 2017 12:19:42 +0000 (09:19 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Fri, 12 May 2017 14:58:37 +0000 (11:58 -0300)
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
bgpd/bgp_route.c

index d3a6e7e9063a89f3fb386f8aa097c5404ead0acb..195e3811d4ca8ae7feefdd539162cb86e65e08ef 100644 (file)
@@ -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);