commit 941a010: [Fix] Fix LRU hash iteration logic
Vsevolod Stakhov
vsevolod at highsecure.ru
Fri Oct 11 10:56:06 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-10-11 11:49:17 +0100
URL: https://github.com/rspamd/rspamd/commit/941a01014917abd9e433ad62ec0c46a3c894d775 (HEAD -> master)
[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;
}
More information about the Commits
mailing list