diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-10-10 13:18:32 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-10-10 13:18:32 +0100 |
commit | 0cc69c93e39c886355a830e615a46a01b590b376 (patch) | |
tree | 574f6578d9a643399983cd15807c4518ef7f5c24 /src/plugins/regexp.c | |
parent | fa554083457bd6b2328f85e4b8c5d0453e49879e (diff) | |
download | rspamd-0cc69c93e39c886355a830e615a46a01b590b376.tar.gz rspamd-0cc69c93e39c886355a830e615a46a01b590b376.zip |
Fix lua expressions in regexp plugin.
Diffstat (limited to 'src/plugins/regexp.c')
-rw-r--r-- | src/plugins/regexp.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c index d097439af..f3eadfa45 100644 --- a/src/plugins/regexp.c +++ b/src/plugins/regexp.c @@ -512,7 +512,6 @@ regexp_module_init (struct config_file *cfg, struct module_ctx **ctx) { regexp_module_ctx = g_malloc (sizeof (struct regexp_ctx)); - regexp_module_ctx->filter = regexp_common_filter; regexp_module_ctx->regexp_pool = memory_pool_new (memory_pool_get_size ()); regexp_module_ctx->dynamic_pool = NULL; regexp_module_ctx->autolearn_symbols = g_hash_table_new (rspamd_str_hash, rspamd_str_equal); @@ -1308,7 +1307,7 @@ process_regexp_item (struct worker_task *task, void *user_data) /* Non-threaded version */ if (item->lua_function) { /* Just call function */ - if (lua_call_expression_func ("regexp", item->lua_function, task, NULL, &res) && res) { + if (lua_call_expression_func (item->lua_function, task, NULL, &res) && res) { insert_result (task, item->symbol, 1, NULL); } } @@ -1321,13 +1320,6 @@ process_regexp_item (struct worker_task *task, void *user_data) } } -static gint -regexp_common_filter (struct worker_task *task) -{ - /* XXX: remove this shit too */ - return 0; -} - static gboolean rspamd_regexp_match_number (struct worker_task *task, GList * args, void *unused) { |