summaryrefslogtreecommitdiffstats
path: root/src/plugins/fuzzy_check.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-03-22 12:09:34 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-03-22 12:09:34 +0000
commita4238dce6f6315bde0c75c853c14e9e241445ef4 (patch)
tree7db4a4ef03370ef361ba4c7c277530e44687e9f0 /src/plugins/fuzzy_check.c
parentea9173c20a331be282b521ce3d0d93f5b0b2abd2 (diff)
downloadrspamd-a4238dce6f6315bde0c75c853c14e9e241445ef4.tar.gz
rspamd-a4238dce6f6315bde0c75c853c14e9e241445ef4.zip
[Minor] Fix potential null pointer dereference
Diffstat (limited to 'src/plugins/fuzzy_check.c')
-rw-r--r--src/plugins/fuzzy_check.c4
1 files 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,