summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/optimizations/not_mergeable
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2022-10-05 01:36:44 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2022-10-06 15:35:23 +0200
commit77bd7e0c70d9a1914c4a853e09849af724c0f695 (patch)
treede11f92ef0d561bfac6d479a0712c9be8aa17b7a /tests/shell/testcases/optimizations/not_mergeable
parent545edb7a8ef0a8acf991b1b7857fddc24d7b151a (diff)
evaluate: bogus datatype assertion in binary operation evaluation
Use datatype_equal(), otherwise dynamically allocated datatype fails to fulfill the datatype pointer check, triggering the assertion: nft: evaluate.c:1249: expr_evaluate_binop: Assertion `expr_basetype(left) == expr_basetype(right)' failed. Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1636 Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/testcases/optimizations/not_mergeable')
-rwxr-xr-xtests/shell/testcases/optimizations/not_mergeable6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/shell/testcases/optimizations/not_mergeable b/tests/shell/testcases/optimizations/not_mergeable
index 25635cdd..ddb2f0fd 100755
--- a/tests/shell/testcases/optimizations/not_mergeable
+++ b/tests/shell/testcases/optimizations/not_mergeable
@@ -7,9 +7,15 @@ RULESET="table ip x {
}
chain t2 {
}
+ chain t3 {
+ }
+ chain t4 {
+ }
chain y {
counter jump t1
counter jump t2
+ ip version 4 jump t3
+ ip version 6 jump t4
}
}"