commit c8c047a: [Fix] Fuzzy_storage: Do not check for shingles if a direct hash has been found
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Feb 24 14:07:06 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-02-24 14:00:26 +0000
URL: https://github.com/rspamd/rspamd/commit/c8c047abd8c7dd20e0cca20e0e7d5f32b91428e8
[Fix] Fuzzy_storage: Do not check for shingles if a direct hash has been found
---
src/libserver/fuzzy_backend/fuzzy_backend_redis.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libserver/fuzzy_backend/fuzzy_backend_redis.c b/src/libserver/fuzzy_backend/fuzzy_backend_redis.c
index 7070773b3..e87ee29d9 100644
--- a/src/libserver/fuzzy_backend/fuzzy_backend_redis.c
+++ b/src/libserver/fuzzy_backend/fuzzy_backend_redis.c
@@ -554,7 +554,7 @@ rspamd_fuzzy_redis_check_callback (redisAsyncContext *c, gpointer r,
}
}
- if (found_elts != 2) {
+ if (found_elts < 2) {
if (session->cmd->shingles_count > 0 && !session->shingles_checked) {
/* We also need to check all shingles here */
rspamd_fuzzy_backend_check_shingles (session);
More information about the Commits
mailing list