From 80b26cf787e14e1cd23dcd9957ebc5f3d35d4315 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 15 Oct 2014 14:37:20 +0100 Subject: [PATCH] Check part->fuzzy before dereferencing. --- src/plugins/fuzzy_check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index 905794d8b..bc2f4b367 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -1032,7 +1032,7 @@ fuzzy_process_rule (struct rspamd_http_connection_entry *entry, fuzzy_module_ctx->min_bytes)) { /* Skip empty parts */ msg_info ("<%s>: part %Xd is too short for fuzzy process, skip it", - task->message_id, part->fuzzy->h); + task->message_id, part->fuzzy ? part->fuzzy->h : 0); cur = g_list_next (cur); continue; } -- 2.39.5