diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-05-03 11:30:57 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-05-03 18:26:38 +0200 |
commit | c8b350392e23c3d33bdc65e6fed49bded672c181 (patch) | |
tree | 0caa45199de27a236a24868dad8cb8685fc2aa19 /tests | |
parent | fc4da14128e33d87fa24c019ec8c3a69548bf466 (diff) |
optimize: incorrect logic in verdict comparison
Keep inspecting rule verdicts before assuming they are equal. Update
existing test to catch this bug.
Fixes: 1542082e259b ("optimize: merge same selector with different verdict into verdict map")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/shell/testcases/optimizations/merge_stmts_concat_vmap | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/shell/testcases/optimizations/merge_stmts_concat_vmap b/tests/shell/testcases/optimizations/merge_stmts_concat_vmap index f1ab0288..5c0ae60c 100755 --- a/tests/shell/testcases/optimizations/merge_stmts_concat_vmap +++ b/tests/shell/testcases/optimizations/merge_stmts_concat_vmap @@ -5,8 +5,8 @@ set -e RULESET="table ip x { chain y { ip saddr 1.1.1.1 ip daddr 2.2.2.2 accept - ip saddr 2.2.2.2 ip daddr 3.3.3.3 drop ip saddr 4.4.4.4 ip daddr 5.5.5.5 accept + ip saddr 2.2.2.2 ip daddr 3.3.3.3 drop } }" |