]> git.puffer.fish Git - matthieu/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:43:32 +0000 (11:43 -0300)
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
bgpd/bgp_route.c

index 02b029d9ee0809d63abc928109dfc7a7ec045788..dbf969168e93e976da6ae88b9e022608a8333e80 100644 (file)
@@ -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);