]> git.ipfire.org Git - thirdparty/nftables.git/commit
evaluate: add set to cache once
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 14 Jun 2021 12:05:09 +0000 (14:05 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 14 Jun 2021 17:24:44 +0000 (19:24 +0200)
commit4971686bd77973310d20a5c700115f5d28e752d3
tree25091dfaaf6732be0871cc941c42099fdcaa6ff7
parent643aed773228b9ad7abfbe1cadc164d7dbe7f6a8
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>
src/evaluate.c