]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fuzzy_storage: Do not check for shingles if a direct hash has been found
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 24 Feb 2020 14:00:26 +0000 (14:00 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 24 Feb 2020 14:00:26 +0000 (14:00 +0000)
src/libserver/fuzzy_backend/fuzzy_backend_redis.c

index 7070773b3a3d98bb3edae56c45d3b9b285d29e61..e87ee29d930a2880233bfcf1fd067f3c9d1eb51c 100644 (file)
@@ -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);