diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-10-15 14:37:20 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-10-15 14:37:20 +0100 |
commit | 80b26cf787e14e1cd23dcd9957ebc5f3d35d4315 (patch) | |
tree | 440f457c0a9574a22e839305101a28bf2dd5bf92 /src | |
parent | 9959f9031e305e117c6b89671ac86c4e84135340 (diff) | |
download | rspamd-80b26cf787e14e1cd23dcd9957ebc5f3d35d4315.tar.gz rspamd-80b26cf787e14e1cd23dcd9957ebc5f3d35d4315.zip |
Check part->fuzzy before dereferencing.
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/fuzzy_check.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |