summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-06-03 17:40:01 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-06-03 17:40:01 +0100
commitd0544d42a0cd4aa6f1b8d52c90c0e65b9d1c335b (patch)
tree71ae308cbf9ba64a0047dfdc4e8b3a8a26f349da /src/plugins
parent9a9299fec9142e06af004de3433fb62416aba310 (diff)
downloadrspamd-d0544d42a0cd4aa6f1b8d52c90c0e65b9d1c335b.tar.gz
rspamd-d0544d42a0cd4aa6f1b8d52c90c0e65b9d1c335b.zip
Do not add empty fuzzy hashes.
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/fuzzy_check.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c
index d16bc94b0..d6393030b 100644
--- a/src/plugins/fuzzy_check.c
+++ b/src/plugins/fuzzy_check.c
@@ -850,7 +850,8 @@ fuzzy_process_handler (struct controller_session *session, f_str_t * in)
while (cur) {
part = cur->data;
- if (part->is_empty) {
+ if (part->is_empty || part->fuzzy == NULL || part->fuzzy->hash_pipe[0] == '\0') {
+ /* Skip empty parts */
cur = g_list_next (cur);
continue;
}