aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/learn_cache/sqlite3_cache.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-26 17:04:55 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-26 17:04:55 +0000
commit22259fdbd6e2a0a99b6c29df2dd4f1e2eedfe66f (patch)
tree117811cdcf409bb81013729a67dc1cfa672324c9 /src/libstat/learn_cache/sqlite3_cache.c
parentb840e3afa41c0e7a53de05e989bc647b08fe842d (diff)
downloadrspamd-22259fdbd6e2a0a99b6c29df2dd4f1e2eedfe66f.tar.gz
rspamd-22259fdbd6e2a0a99b6c29df2dd4f1e2eedfe66f.zip
Remove legacy words, use merely normalized_words
Diffstat (limited to 'src/libstat/learn_cache/sqlite3_cache.c')
-rw-r--r--src/libstat/learn_cache/sqlite3_cache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstat/learn_cache/sqlite3_cache.c b/src/libstat/learn_cache/sqlite3_cache.c
index 889395b4d..cf4ab615a 100644
--- a/src/libstat/learn_cache/sqlite3_cache.c
+++ b/src/libstat/learn_cache/sqlite3_cache.c
@@ -257,9 +257,9 @@ rspamd_stat_cache_sqlite3_process (struct rspamd_task *task,
for (i = 0; i < task->text_parts->len; i ++) {
part = g_ptr_array_index (task->text_parts, i);
- if (part->words != NULL) {
- for (j = 0; j < part->words->len; j ++) {
- word = &g_array_index (part->words, rspamd_ftok_t, j);
+ if (part->normalized_words != NULL) {
+ for (j = 0; j < part->normalized_words->len; j ++) {
+ word = &g_array_index (part->normalized_words, rspamd_ftok_t, j);
rspamd_cryptobox_hash_update (&st, word->begin, word->len);
}
}