commit a4238dc: [Minor] Fix potential null pointer dereference

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Mar 22 12:14:05 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-03-22 12:09:34 +0000
URL: https://github.com/rspamd/rspamd/commit/a4238dce6f6315bde0c75c853c14e9e241445ef4 (HEAD -> master)

[Minor] Fix potential null pointer dereference

---
 src/plugins/fuzzy_check.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c
index 1315c5374..a14c4f7b9 100644
--- a/src/plugins/fuzzy_check.c
+++ b/src/plugins/fuzzy_check.c
@@ -2812,7 +2812,7 @@ fuzzy_controller_io_callback (gint fd, short what, void *arg)
 										"list %s:%d, skipped by server",
 								ftype,
 								op,
-								MESSAGE_FIELD (session->task, message_id),
+								MESSAGE_FIELD_CHECK (session->task, message_id),
 								(gint)sizeof (rep->digest), rep->digest,
 								symbol,
 								rep->v1.flag);
@@ -2827,7 +2827,7 @@ fuzzy_controller_io_callback (gint fd, short what, void *arg)
 										"list %s:%d, error: %d",
 								ftype,
 								op,
-								MESSAGE_FIELD (session->task, message_id),
+								MESSAGE_FIELD_CHECK (session->task, message_id),
 								(gint)sizeof (rep->digest), rep->digest,
 								symbol,
 								rep->v1.flag,


More information about the Commits mailing list