aboutsummaryrefslogtreecommitdiffstats
path: root/src/controller.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-04-25 21:33:14 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-04-25 21:33:14 +0100
commit29c1bc04e6d26c4578a6cc8b97d1f4106df5ffa4 (patch)
tree22b0b0fb188dbbf2b316de07f77428e9689f3632 /src/controller.c
parentdebd36af7a2e4af9bde4331c150fe0526596e95e (diff)
downloadrspamd-29c1bc04e6d26c4578a6cc8b97d1f4106df5ffa4.tar.gz
rspamd-29c1bc04e6d26c4578a6cc8b97d1f4106df5ffa4.zip
[Minor] Do not add stats for invalid requests
Diffstat (limited to 'src/controller.c')
-rw-r--r--src/controller.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/controller.c b/src/controller.c
index 57586f3a9..631287f64 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -2174,6 +2174,7 @@ rspamd_controller_handle_scan (struct rspamd_http_connection_entry *conn_ent,
task->resolver = ctx->resolver;
if (!rspamd_protocol_handle_request (task, msg)) {
+ task->flags |= RSPAMD_TASK_FLAG_SKIP;
goto end;
}