diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-11 11:49:17 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-11 11:49:17 +0100 |
commit | 941a01014917abd9e433ad62ec0c46a3c894d775 (patch) | |
tree | e8901002a66a004376b035d3d1f8f9ca8b937a86 /src/libutil/hash.c | |
parent | dbbd6c612def879c6c41c584b4be39c9fd3a8013 (diff) | |
download | rspamd-941a01014917abd9e433ad62ec0c46a3c894d775.tar.gz rspamd-941a01014917abd9e433ad62ec0c46a3c894d775.zip |
[Fix] Fix LRU hash iteration logic
Diffstat (limited to 'src/libutil/hash.c')
-rw-r--r-- | src/libutil/hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |