diff options
author | Florian Westphal <fw@strlen.de> | 2024-01-12 13:32:17 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2024-06-16 13:39:23 +0200 |
commit | b40bebbcee3602e2d849e48f3a50676bd8987204 (patch) | |
tree | df165814b8936a5f8ca09ae3f546ed701346707a /tests/shell/testcases | |
parent | 48b1f5e88f09eea1632fe7c27dd30b7c370d647f (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-crash | 6 |
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 } + } +} |