From: Vsevolod Stakhov Date: Mon, 22 Dec 2014 22:23:51 +0000 (+0000) Subject: Fix for fuzzy matching. X-Git-Tag: 0.8.0~30 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6b441d3b8400954381a78ddc8ee2f524bdad28a0;p=rspamd.git Fix for fuzzy matching. --- diff --git a/src/libserver/fuzzy_backend.c b/src/libserver/fuzzy_backend.c index 03d40161b..c513ad06f 100644 --- a/src/libserver/fuzzy_backend.c +++ b/src/libserver/fuzzy_backend.c @@ -610,12 +610,12 @@ rspamd_fuzzy_backend_check (struct rspamd_fuzzy_backend *backend, cur_cnt ++; } else { + cur_id = shingle_values[i]; if (cur_cnt >= max_cnt) { max_cnt = cur_cnt; sel_id = cur_id; } cur_cnt = 0; - cur_id = shingle_values[i]; } }