summaryrefslogtreecommitdiffstats
path: root/src/filter.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-09-25 20:04:56 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-09-25 20:04:56 +0400
commit71b43d966af50b69605fd91453e90eb3c67a3203 (patch)
tree19c19a0e2c845cd1e6cc9553bcf84bdc27f03d97 /src/filter.c
parent7584957defe9b63084c1fb6b939ae88718752a91 (diff)
downloadrspamd-71b43d966af50b69605fd91453e90eb3c67a3203.tar.gz
rspamd-71b43d966af50b69605fd91453e90eb3c67a3203.zip
* Add events to lua resolver
* Do not classify non-text messages
Diffstat (limited to 'src/filter.c')
-rw-r--r--src/filter.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/filter.c b/src/filter.c
index 96faabd66..e03d169e0 100644
--- a/src/filter.c
+++ b/src/filter.c
@@ -526,6 +526,10 @@ classifiers_callback (gpointer value, void *arg)
}
g_hash_table_insert (data->tokens, cl->tokenizer, tokens);
}
+
+ if (tokens == NULL) {
+ return;
+ }
ctx = cl->classifier->init_func (task->task_pool, cl);
cl->classifier->classify_func (ctx, task->worker->srv->statfile_pool, tokens, task);