]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nft_dynset: dump expressions when set definition contains no expressions
authorPablo Neira Ayuso <pablo@netfilter.org>
Sat, 16 Jan 2021 18:50:34 +0000 (19:50 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 16 Jan 2021 18:54:42 +0000 (19:54 +0100)
commitc4bf164d8cfe442a121d8b99da11d30b022bcfd4
tree71893cd0bbf6b281045f158164c1c818230a2c83
parent6e7a613fd7fcb423871066e7a70af015d387af4f
netfilter: nft_dynset: dump expressions when set definition contains no expressions

If the set definition provides no stateful expressions, then include the
stateful expression in the ruleset listing. Without this fix, the dynset
rule listing shows the stateful expressions provided by the set
definition.

Fixes: 41c20180fbfc ("netfilter: nf_tables: allow to specify stateful expression in set definition")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_dynset.c