]> git.ipfire.org Git - thirdparty/iptables.git/commit
nft: Fix for -Z with bogus rule number
authorPhil Sutter <phil@nwl.cc>
Wed, 9 Oct 2024 16:43:34 +0000 (18:43 +0200)
committerPhil Sutter <phil@nwl.cc>
Wed, 16 Oct 2024 13:34:50 +0000 (15:34 +0200)
commit79816721276e104bd54b684991d1975abad2ca02
treeb91dfb5c29e5181f6aaa699b11c7f7b94cde234e
parent4d36046edada7a6cd4a619ac53496a6d74947f65
nft: Fix for -Z with bogus rule number

The command is supposed to fail if no rule at given index is found.
While at it, drop the goto and label which are unused since commit
9b896224e0bfc ("xtables: rework rule cache logic").

Fixes: a69cc575295ee ("xtables: allow to reset the counters of an existing rule")
Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/nft.c