commit 797d833: [Minor] Check message field before dereferencing

Vsevolod Stakhov vsevolod at highsecure.ru
Sun Jul 26 19:07:15 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-07-26 12:42:47 +0100
URL: https://github.com/rspamd/rspamd/commit/797d8332a72ca43b870e077f238d15184206cf66 (HEAD -> master)

[Minor] Check message field before dereferencing

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

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;


More information about the Commits mailing list