From 941a01014917abd9e433ad62ec0c46a3c894d775 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 11 Oct 2019 11:49:17 +0100 Subject: [Fix] Fix LRU hash iteration logic --- src/libutil/hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libutil/hash.c b/src/libutil/hash.c index 09d3a29c1..59ad981cd 100644 --- a/src/libutil/hash.c +++ b/src/libutil/hash.c @@ -701,7 +701,7 @@ rspamd_lru_hash_foreach (rspamd_lru_hash_t *h, int it, gpointer *k, return -1; } - return i; + return i + 1; } -- cgit v1.2.3