From: Vsevolod Stakhov Date: Wed, 24 Dec 2014 16:02:34 +0000 (+0000) Subject: Learn legacy fuzzy as well for now. X-Git-Tag: 0.8.0~24 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ebf20c3d70ded2760027947f8918473fe2662e40;p=rspamd.git Learn legacy fuzzy as well for now. --- diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index df2ffd9f5..9ae49fc3d 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -1040,12 +1040,10 @@ fuzzy_generate_commands (struct rspamd_task *task, struct fuzzy_rule *rule, /* * Try legacy first */ - if (c == FUZZY_CHECK) { - cmd = fuzzy_cmd_from_text_part (rule, c, flag, value, task->task_pool, - part, TRUE, NULL); - if (cmd) { - g_ptr_array_add (res, cmd); - } + cmd = fuzzy_cmd_from_text_part (rule, c, flag, value, task->task_pool, + part, TRUE, NULL); + if (cmd) { + g_ptr_array_add (res, cmd); } cmd = fuzzy_cmd_from_text_part (rule, c, flag, value, task->task_pool, part, FALSE, NULL);