From 56d5d7b0d445f66f7ba42d26d5cc535926c0426b Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 15 Apr 2021 15:06:07 +0200 Subject: cache: add set_cache_del() and use it Update set_cache_del() from the monitor path to remove sets in the cache. Fixes: df48e56e987f ("cache: add hashtable cache for sets") Signed-off-by: Pablo Neira Ayuso --- src/monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/monitor.c') diff --git a/src/monitor.c b/src/monitor.c index ae288f6c..00cf7d13 100644 --- a/src/monitor.c +++ b/src/monitor.c @@ -687,7 +687,7 @@ out: static void netlink_events_cache_delset_cb(struct set *s, void *data) { - list_del(&s->list); + set_cache_del(s); set_free(s); } -- cgit v1.2.3