From: Vsevolod Stakhov Date: Fri, 11 Oct 2019 10:49:17 +0000 (+0100) Subject: [Fix] Fix LRU hash iteration logic X-Git-Tag: 2.0~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=941a01014917abd9e433ad62ec0c46a3c894d775;p=thirdparty%2Frspamd.git [Fix] Fix LRU hash iteration logic --- diff --git a/src/libutil/hash.c b/src/libutil/hash.c index 09d3a29c14..59ad981cd1 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; }