diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-12-24 16:02:34 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-12-24 16:02:34 +0000 |
commit | ebf20c3d70ded2760027947f8918473fe2662e40 (patch) | |
tree | eb4cc2d89123a5bbad79d2f9c003aacf15b04ca8 /src | |
parent | a75c10a8b1042a6e59b053ba9ef1a11c0708a9fc (diff) | |
download | rspamd-ebf20c3d70ded2760027947f8918473fe2662e40.tar.gz rspamd-ebf20c3d70ded2760027947f8918473fe2662e40.zip |
Learn legacy fuzzy as well for now.
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/fuzzy_check.c | 10 |
1 files changed, 4 insertions, 6 deletions
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); |