commit 29c1bc0: [Minor] Do not add stats for invalid requests

Vsevolod Stakhov vsevolod at rspamd.com
Mon Apr 25 20:35:04 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-04-25 21:33:14 +0100
URL: https://github.com/rspamd/rspamd/commit/29c1bc04e6d26c4578a6cc8b97d1f4106df5ffa4 (HEAD -> master)

[Minor] Do not add stats for invalid requests

---
 src/controller.c | 1 +
 1 file changed, 1 insertion(+)

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;
 	}
 


More information about the Commits mailing list