From: Chris Arges Date: Tue, 26 Oct 2021 22:09:28 +0000 (+0200) Subject: cache: ensure evaluate_cache_list flags are set correctly X-Git-Tag: v1.0.1~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ba43417cbdb1898be4f6e38afe0f2f2ac6d0db7f;p=thirdparty%2Fnftables.git cache: ensure evaluate_cache_list flags are set correctly This change ensures that when listing rulesets with the terse flag that the terse flag is maintained. Fixes: 6bcd0d576a60 ("cache: unset NFT_CACHE_SETELEM with --terse listing") Signed-off-by: Chris Arges Signed-off-by: Pablo Neira Ayuso --- diff --git a/src/cache.c b/src/cache.c index f62c9b96..f66b415c 100644 --- a/src/cache.c +++ b/src/cache.c @@ -166,6 +166,7 @@ static unsigned int evaluate_cache_list(struct nft_ctx *nft, struct cmd *cmd, flags |= (NFT_CACHE_FULL & ~NFT_CACHE_SETELEM); else flags |= NFT_CACHE_FULL; + break; default: flags |= NFT_CACHE_FULL; break;