]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Fix LRU hash iteration logic
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 11 Oct 2019 10:49:17 +0000 (11:49 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 11 Oct 2019 10:49:17 +0000 (11:49 +0100)
src/libutil/hash.c

index 09d3a29c14af0c8a8d9c9b8f040a956e442b3bdd..59ad981cd19065f16b61268b96705e40ca4e4b16 100644 (file)
@@ -701,7 +701,7 @@ rspamd_lru_hash_foreach (rspamd_lru_hash_t *h, int it, gpointer *k,
                return -1;
        }
 
-       return i;
+       return i + 1;
 }