From 2bf92084b77060f3b089fc5f0e78a2a3ac8d34f5 Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Mon, 18 Nov 2019 12:05:47 +0100 Subject: [PATCH] lib: no filter operations fix on appropriate access-list name some vty no operations were not removing the entry of the access-list, since the access-list name was not retrieved correctly. the index was not correct for 'no ipv6 access-list WORD' operations, but also for one 'no access-list WORD [..] any' operation. PR=66244 Signed-off-by: Philippe Guibert Acked-by: Alain Ritoux --- lib/filter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/filter.c b/lib/filter.c index 8c210bd7ad..ed3ffe9c67 100644 --- a/lib/filter.c +++ b/lib/filter.c @@ -2147,7 +2147,7 @@ DEFUN (no_access_list_any, "Specify packets to forward\n" "Prefix to match. e.g. 10.0.0.0/8\n") { - int idx_word = 1; + int idx_word = 2; int idx = 0; char *seq = NULL; char *permit_deny = NULL; @@ -2352,7 +2352,7 @@ DEFUN (no_ipv6_access_list_exact, { int idx = 0; int exact = 0; - int idx_word = 2; + int idx_word = 3; char *seq = NULL; char *permit_deny = NULL; char *prefix = NULL; @@ -2394,7 +2394,7 @@ DEFUN (no_ipv6_access_list_any, "Specify packets to forward\n" "Any prefixi to match\n") { - int idx_word = 2; + int idx_word = 3; int idx = 0; char *seq = NULL; char *permit_deny = NULL; -- 2.39.5