summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris Arges <carges@cloudflare.com>2021-10-27 00:09:28 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2021-10-27 00:37:46 +0200
commitba43417cbdb1898be4f6e38afe0f2f2ac6d0db7f (patch)
tree2e2c369fc9fa56dca834230e000611db04b27a2e /src
parenta99486e8cd237a84acd3613f79f82d74f192ceaa (diff)
cache: ensure evaluate_cache_list flags are set correctlyHEADmaster
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 <carges@cloudflare.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r--src/cache.c1
1 files changed, 1 insertions, 0 deletions
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;