From: Vsevolod Stakhov Date: Mon, 3 Jun 2013 16:40:01 +0000 (+0100) Subject: Do not add empty fuzzy hashes. X-Git-Tag: 0.5.5~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0544d42a0cd4aa6f1b8d52c90c0e65b9d1c335b;p=thirdparty%2Frspamd.git Do not add empty fuzzy hashes. --- diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index d16bc94b07..d6393030b9 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; }