aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-12 11:29:20 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-12 11:29:20 +0100
commit0d47a9c3e54432db1bdefac389a4162db6382f6d (patch)
tree7904c937e39f0fa52214f6968c6b6756b8b9c820 /src
parent931615a2e0c1069c161bf2c9516732f576f20ee3 (diff)
downloadrspamd-0d47a9c3e54432db1bdefac389a4162db6382f6d.tar.gz
rspamd-0d47a9c3e54432db1bdefac389a4162db6382f6d.zip
[Fix] Fix handling of the same words
Diffstat (limited to 'src')
-rw-r--r--src/libutil/shingles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/shingles.c b/src/libutil/shingles.c
index 8d1b147db..d00fb05b2 100644
--- a/src/libutil/shingles.c
+++ b/src/libutil/shingles.c
@@ -133,7 +133,7 @@ rspamd_shingles_generate (GArray *input,
*(guint64 *)keys[j]);
val = 0;
for (k = 0; k < SHINGLES_WINDOW; k ++) {
- val ^= res[j * SHINGLES_WINDOW + k];
+ val ^= res[j * SHINGLES_WINDOW + k] >> (8 * k);
}
g_assert (hlen > beg);