diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-02-14 22:22:55 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-02-14 22:22:55 +0000 |
commit | 137349a07625326251e8a090b4bc84398f766968 (patch) | |
tree | b71dac539a712d67e4bbf9c229e2fed16dba56e2 /src/controller.c | |
parent | 160fbf87d40f343f15aa1186135e34decc6cdf03 (diff) | |
download | rspamd-137349a07625326251e8a090b4bc84398f766968.tar.gz rspamd-137349a07625326251e8a090b4bc84398f766968.zip |
Add error codes for statistics.
Diffstat (limited to 'src/controller.c')
-rw-r--r-- | src/controller.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/controller.c b/src/controller.c index a0677f49e..e1fa3cb82 100644 --- a/src/controller.c +++ b/src/controller.c @@ -730,7 +730,8 @@ rspamd_controller_learn_fin_task (void *ud) conn_ent = task->fin_arg; session = conn_ent->ud; - if (!rspamd_learn_task_spam (session->cl, task, session->is_spam, &err)) { + if (rspamd_learn_task_spam (session->cl, task, session->is_spam, &err) == + RSPAMD_STAT_PROCESS_ERROR) { rspamd_controller_send_error (conn_ent, 500 + err->code, err->message); return TRUE; } |