]> git.ipfire.org Git - thirdparty/iptables.git/commit
extensions: libebt_stp: fix range checking
authorFlorian Westphal <fw@strlen.de>
Tue, 23 Jan 2024 16:49:33 +0000 (17:49 +0100)
committerPhil Sutter <phil@nwl.cc>
Thu, 25 Jan 2024 14:34:01 +0000 (15:34 +0100)
commitee87ad419e9a0c66a0b80fd73a530af741d2629e
tree3a2a9ddde3cd6d0b4d9dd15e6b6314d43c30b0ff
parent0a118c474924f05224b215cf38b7b3a19a9f0265
extensions: libebt_stp: fix range checking

This has to either consider ->nvals > 1 or check the values
post-no-range-fixup:

./iptables-test.py  extensions/libebt_stp.t
extensions/libebt_stp.t: ERROR: line 12 (cannot load: ebtables -A INPUT --stp-root-cost 1)

(it tests 0 < 1 and fails, but test should be 1 < 1).

Fixes: dc6efcfeac38 ("extensions: libebt_stp: Use guided option parser")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Phil Sutter <phil@nwl.cc>
extensions/libebt_stp.c