summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2021-06-14 14:05:09 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2021-06-14 19:24:44 +0200
commit4971686bd77973310d20a5c700115f5d28e752d3 (patch)
tree25091dfaaf6732be0871cc941c42099fdcaa6ff7
parent643aed773228b9ad7abfbe1cadc164d7dbe7f6a8 (diff)
evaluate: add set to cache once
67d3969a7244 ("evaluate: add set to the cache") re-adds the set into the cache again. This bug was hidden behind 5ec5c706d993 ("cache: add hashtable cache for table") which broke set_evaluate() for anonymous sets. Phil reported a gcc compilation warning which uncovered this problem. Reported-by: Phil Sutter <phil@nwl.cc> Fixes: 67d3969a7244 ("evaluate: add set to the cache") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--src/evaluate.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/evaluate.c b/src/evaluate.c
index 5863fc82..4397bacf 100644
--- a/src/evaluate.c
+++ b/src/evaluate.c
@@ -3867,9 +3867,6 @@ static int set_evaluate(struct eval_ctx *ctx, struct set *set)
}
ctx->set = NULL;
- if (set_cache_find(table, set->handle.set.name) == NULL)
- set_cache_add(set_get(set), table);
-
return 0;
}