diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-14 14:46:04 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-14 14:46:04 +0100 |
commit | ca693018d679473fc83cae8ca09a806741fe8afe (patch) | |
tree | ba5d8b69ec2e73b4edc820c95fc33175f2d0b05d /src/libserver/task.c | |
parent | 7eadc580cf37a633da4c32e78de6568de4287378 (diff) | |
download | rspamd-ca693018d679473fc83cae8ca09a806741fe8afe.tar.gz rspamd-ca693018d679473fc83cae8ca09a806741fe8afe.zip |
Do not treat classify error as fatal error.
Diffstat (limited to 'src/libserver/task.c')
-rw-r--r-- | src/libserver/task.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libserver/task.c b/src/libserver/task.c index 8dd682a1e..9c17bd3c5 100644 --- a/src/libserver/task.c +++ b/src/libserver/task.c @@ -430,7 +430,8 @@ rspamd_task_process (struct rspamd_task *task, guint stages) break; case RSPAMD_TASK_STAGE_CLASSIFIERS: - if (!rspamd_stat_classify (task, task->cfg->lua_state, &task->err)) { + if (rspamd_stat_classify (task, task->cfg->lua_state, &task->err) == + RSPAMD_STAT_PROCESS_ERROR) { ret = FALSE; } break; |