From 100b0d96c2852916d68b17aad198f45808191f52 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Fri, 24 Nov 2023 20:54:28 +0100 Subject: xshared: do_parse: Skip option checking for CMD_DELETE_NUM This command will delete a rule by its number, not rule spec. No -i/-o options are expected on commandline. Signed-off-by: Phil Sutter --- iptables/xshared.c | 1 - 1 file changed, 1 deletion(-) (limited to 'iptables/xshared.c') diff --git a/iptables/xshared.c b/iptables/xshared.c index dca74477..53e67201 100644 --- a/iptables/xshared.c +++ b/iptables/xshared.c @@ -1837,7 +1837,6 @@ void do_parse(int argc, char *argv[], if (p->command == CMD_APPEND || p->command == CMD_DELETE || - p->command == CMD_DELETE_NUM || p->command == CMD_CHECK || p->command == CMD_INSERT || p->command == CMD_REPLACE) { -- cgit v1.2.3