]> git.ipfire.org Git - thirdparty/iptables.git/commit
nft: Avoid nested cache fetching
authorPhil Sutter <phil@nwl.cc>
Mon, 7 Oct 2019 10:35:21 +0000 (12:35 +0200)
committerPhil Sutter <phil@nwl.cc>
Thu, 10 Oct 2019 21:51:16 +0000 (23:51 +0200)
commit97fbef55d1e89ca73bf1e6b31ac46d756ac499f1
treed8013a3236704adcd94576ea86e9e32d3a78766a
parent4e9782cae29034c4eefd31703ba77aee7eca2233
nft: Avoid nested cache fetching

Don't call fetch_table_cache() from within fetch_chain_cache() but
instead from __nft_build_cache(). Since that is the only caller of
fetch_chain_cache(), this change should not have any effect in practice.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables/nft.c