From: Vsevolod Stakhov Date: Wed, 15 Oct 2014 13:37:20 +0000 (+0100) Subject: Check part->fuzzy before dereferencing. X-Git-Tag: 0.7.2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80b26cf787e14e1cd23dcd9957ebc5f3d35d4315;p=thirdparty%2Frspamd.git Check part->fuzzy before dereferencing. --- diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index 905794d8b4..bc2f4b367a 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; }