aboutsummaryrefslogtreecommitdiffstats
path: root/src/controller.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-07-26 12:42:47 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-07-26 20:04:00 +0100
commit797d8332a72ca43b870e077f238d15184206cf66 (patch)
tree56e62bedd3f0d99b8a8dfd1440403c94a8c2f02f /src/controller.c
parent1acd5507db062251613f93ac927d96c1e2a011b3 (diff)
downloadrspamd-797d8332a72ca43b870e077f238d15184206cf66.tar.gz
rspamd-797d8332a72ca43b870e077f238d15184206cf66.zip
[Minor] Check message field before dereferencing
Diffstat (limited to 'src/controller.c')
-rw-r--r--src/controller.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controller.c b/src/controller.c
index 0b5e42381..9abd8f109 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -1949,7 +1949,7 @@ rspamd_controller_check_fin_task (void *ud)
if (task->err) {
msg_info_task ("cannot check <%s>: %e",
- MESSAGE_FIELD (task, message_id), task->err);
+ MESSAGE_FIELD_CHECK (task, message_id), task->err);
rspamd_controller_send_error (conn_ent, task->err->code, "%s",
task->err->message);
return TRUE;