summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2024-01-12 13:32:17 +0100
committerFlorian Westphal <fw@strlen.de>2024-06-16 13:39:23 +0200
commitb40bebbcee3602e2d849e48f3a50676bd8987204 (patch)
treedf165814b8936a5f8ca09ae3f546ed701346707a /tests/shell/testcases
parent48b1f5e88f09eea1632fe7c27dd30b7c370d647f (diff)
rule: do not crash if to-be-printed flowtable lacks priority
Print an empty flowtable rather than crashing when dereferencing flowtable->priority.expr (its NULL). Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/shell/testcases')
-rw-r--r--tests/shell/testcases/bogons/flowtable-no-priority-crash6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/shell/testcases/bogons/flowtable-no-priority-crash b/tests/shell/testcases/bogons/flowtable-no-priority-crash
new file mode 100644
index 00000000..b327a2bd
--- /dev/null
+++ b/tests/shell/testcases/bogons/flowtable-no-priority-crash
@@ -0,0 +1,6 @@
+reset rules
+table inet filter {
+ flowtable f {
+ devices = { lo }
+ }
+}