]> source.dussan.org Git - rspamd.git/commitdiff
Check part->fuzzy before dereferencing.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 15 Oct 2014 13:37:20 +0000 (14:37 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 15 Oct 2014 13:37:20 +0000 (14:37 +0100)
src/plugins/fuzzy_check.c

index 905794d8b442bf9a96da734f094a48ddaebc6e66..bc2f4b367ab5a2282f5eabe8a9fef185d63f6fc8 100644 (file)
@@ -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;
                }