Skip to contentSkip to conversation

cache: ensure evaluate_cache_list flags are set correctly

PATCH Applied Chris Arges 2 participants 2 messages Oct 26, 2021 – Oct 27, 2021 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 6bcd0d57 ("cache: unset NFT_CACHE_SETELEM with --terse listing")
---
 src/cache.c | 1 +
 1 file changed, 1 insertion(+)
src/cache.c +1 -0
index c602f93a..bc90233f 100644
@@ -164,6 +164,7 @@ static unsigned int evaluate_cache_list(struct nft_ctx *nft, struct cmd *cmd,
 			flags |= (NFT_CACHE_FULL & ~NFT_CACHE_SETELEM) | NFT_CACHE_REFRESH;
 		else
 			flags |= NFT_CACHE_FULL | NFT_CACHE_REFRESH;
+		break;
 	default:
 		flags |= NFT_CACHE_FULL | NFT_CACHE_REFRESH;
 		break;
Signature · 1 line
2.25.1
maintainer Applied
#1 lore raw
Quoted 2 lines · Chris Arges

This change ensures that when listing rulesets with the terse flag that the terse flag is maintained.

Applied