aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/fuzzy_check.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c
index 066d58272..de3fdb57b 100644
--- a/src/plugins/fuzzy_check.c
+++ b/src/plugins/fuzzy_check.c
@@ -718,6 +718,13 @@ fuzzy_symbol_callback (struct worker_task *task, void *unused)
continue;
}
+ /* Check length of part */
+ if (fuzzy_module_ctx->min_bytes > part->content->len) {
+ msg_info ("<%s>, part is shorter than %d symbols, skip fuzzy check",
+ task->message_id, fuzzy_module_ctx->min_bytes);
+ cur = g_list_next (cur);
+ continue;
+ }
/* Check length of hash */
hashlen = strlen (part->fuzzy->hash_pipe);
if (hashlen == 0) {