diff --git a/ripd/rip_routemap.c b/ripd/rip_routemap.c index ecff6e766d..e1017cfb27 100644 --- a/ripd/rip_routemap.c +++ b/ripd/rip_routemap.c @@ -754,7 +754,7 @@ DEFUN (no_match_metric, "Match metric of route\n" "Metric value\n") { - char *mval = (argc == 4) ? argc[3]->arg : NULL; + char *mval = (argc == 4) ? argv[3]->arg : NULL; return rip_route_match_delete (vty, vty->index, "metric", mval); }