diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-07-26 12:42:47 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-07-26 20:04:00 +0100 |
commit | 797d8332a72ca43b870e077f238d15184206cf66 (patch) | |
tree | 56e62bedd3f0d99b8a8dfd1440403c94a8c2f02f /src/controller.c | |
parent | 1acd5507db062251613f93ac927d96c1e2a011b3 (diff) | |
download | rspamd-797d8332a72ca43b870e077f238d15184206cf66.tar.gz rspamd-797d8332a72ca43b870e077f238d15184206cf66.zip |
[Minor] Check message field before dereferencing
Diffstat (limited to 'src/controller.c')
-rw-r--r-- | src/controller.c | 2 |
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; |