aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-10-08 09:53:18 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-10-08 09:53:18 +0100
commitdd9783636f3a77e693b778c7617134bb23676fc3 (patch)
treefd734e751edde0cd366bb4a4c9033e83f52396e6 /src/libmime
parent89033279e73e0dc548b87785b415b4daef5b1dce (diff)
downloadrspamd-dd9783636f3a77e693b778c7617134bb23676fc3.tar.gz
rspamd-dd9783636f3a77e693b778c7617134bb23676fc3.zip
[Minor] Deny symbols adding on idempotent stage
Diffstat (limited to 'src/libmime')
-rw-r--r--src/libmime/filter.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libmime/filter.c b/src/libmime/filter.c
index 18ffce903..efd3e7bb2 100644
--- a/src/libmime/filter.c
+++ b/src/libmime/filter.c
@@ -266,6 +266,13 @@ insert_result_common (struct rspamd_task *task,
{
struct rspamd_symbol_result *s = NULL;
+ if (task->processed_stages & RSPAMD_TASK_STAGE_IDEMPOTENT) {
+ msg_err_task ("cannot insert symbol %s on idempotent phase",
+ symbol);
+
+ return NULL;
+ }
+
/* Insert symbol to default metric */
s = insert_metric_result (task,
task->cfg->default_metric,