diff options
author | Phil Sutter <phil@nwl.cc> | 2023-11-24 20:54:28 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2023-12-05 16:35:37 +0100 |
commit | 100b0d96c2852916d68b17aad198f45808191f52 (patch) | |
tree | 3bbeabf1b34b5aa0483b8fa84f9142b0adc3f9c8 /iptables/xshared.c | |
parent | 41139aee5e53304182a25f1e573f034b313f7232 (diff) |
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 <phil@nwl.cc>
Diffstat (limited to 'iptables/xshared.c')
-rw-r--r-- | iptables/xshared.c | 1 |
1 files changed, 0 insertions, 1 deletions
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) { |