summaryrefslogtreecommitdiffstats
path: root/iptables/xtables.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-12-30 20:06:09 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2019-01-09 17:22:11 +0100
commit4441b7da7995ed87741164ef39e99f1065eb9637 (patch)
tree4fe70678fe4621dd92310c31105ac7703ed766d6 /iptables/xtables.c
parentfae77a24634365b18687a5f09357dbf4aaee2bc0 (diff)
nft: Simplify flush_chain_cache()
With all the checks for 'tablename' being non-NULL, this code was rather stupid and really hard to read. And the fix is indeed quite simple: If a table name was given, use nft_table_builtin_find() and just flush its chain cache. Otherwise iterate over all builtin tables without any conditionals for 'tablename'. Fixes: d4b0d248cc057 ("nft: Reduce indenting level in flush_chain_cache()") Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/xtables.c')
0 files changed, 0 insertions, 0 deletions