]> git.ipfire.org Git - thirdparty/nftables.git/commit
rule: crash when uncollapsing command with unexisting table or set
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 7 Jul 2022 13:11:35 +0000 (15:11 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 7 Jul 2022 13:26:17 +0000 (15:26 +0200)
commit46980cddddfd77f2700fcb8234641711b985cd04
tree1172ad84436982d4eefc55e6a8f12f6b10d137b5
parent8a6cdfaff058412b3d0efec45541cd7d610aeefa
rule: crash when uncollapsing command with unexisting table or set

If ruleset update refers to an unexisting table or set, then
cmd->elem.set is NULL.

Fixes: 498a5f0c219d ("rule: collapse set element commands")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/rule.c
tests/shell/testcases/sets/errors_0