]> git.ipfire.org Git - thirdparty/nftables.git/commit
rule: do not crash if to-be-printed flowtable lacks priority
authorFlorian Westphal <fw@strlen.de>
Fri, 12 Jan 2024 12:32:17 +0000 (13:32 +0100)
committerFlorian Westphal <fw@strlen.de>
Sun, 16 Jun 2024 11:39:23 +0000 (13:39 +0200)
commitb40bebbcee3602e2d849e48f3a50676bd8987204
treedf165814b8936a5f8ca09ae3f546ed701346707a
parent48b1f5e88f09eea1632fe7c27dd30b7c370d647f
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>
src/rule.c
tests/shell/testcases/bogons/flowtable-no-priority-crash [new file with mode: 0644]