diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-04-25 21:33:14 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-04-25 21:33:14 +0100 |
commit | 29c1bc04e6d26c4578a6cc8b97d1f4106df5ffa4 (patch) | |
tree | 22b0b0fb188dbbf2b316de07f77428e9689f3632 /src/controller.c | |
parent | debd36af7a2e4af9bde4331c150fe0526596e95e (diff) | |
download | rspamd-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.c | 1 |
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; } |