summaryrefslogtreecommitdiffstats
path: root/src/libserver/protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libserver/protocol.c')
-rw-r--r--src/libserver/protocol.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c
index 08e7bc3c3..1f5b1f447 100644
--- a/src/libserver/protocol.c
+++ b/src/libserver/protocol.c
@@ -397,6 +397,9 @@ rspamd_protocol_handle_headers (struct rspamd_task *task,
msg_err ("Invalid message length header: %s", h->value->str);
validh = FALSE;
}
+ else {
+ task->flags |= RSPAMD_TASK_FLAG_HAS_CONTROL;
+ }
}
else {
validh = FALSE;