]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Do not add empty fuzzy hashes.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 3 Jun 2013 16:40:01 +0000 (17:40 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 3 Jun 2013 16:40:01 +0000 (17:40 +0100)
src/plugins/fuzzy_check.c

index d16bc94b07748a52bfa1ddc71dfa2c9fd4f834de..d6393030b91052074cc8103c4a2067606254114a 100644 (file)
@@ -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;
                        }