From c8c047abd8c7dd20e0cca20e0e7d5f32b91428e8 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 24 Feb 2020 14:00:26 +0000 Subject: [PATCH] [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); -- 2.39.5