From 797d8332a72ca43b870e077f238d15184206cf66 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 26 Jul 2020 12:42:47 +0100 Subject: [Minor] Check message field before dereferencing --- src/controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/controller.c') 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; -- cgit v1.2.3