summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-04-23 16:56:43 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-04-23 16:56:43 +0400
commit926925fa66e6e3e7747c00997c1f8f285ebb326d (patch)
treee230ebdfe9bfc12decc538ecebdff33bf87b0553 /src/plugins
parent140910a0f6c3dc857f5b949bd9caff91188e78b0 (diff)
downloadrspamd-926925fa66e6e3e7747c00997c1f8f285ebb326d.tar.gz
rspamd-926925fa66e6e3e7747c00997c1f8f285ebb326d.zip
* Fix regexp_match_number function
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/regexp.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c
index 4de5984c9..3acfddc5b 100644
--- a/src/plugins/regexp.c
+++ b/src/plugins/regexp.c
@@ -421,9 +421,7 @@ regexp_common_filter (struct worker_task *task)
static gboolean
rspamd_regexp_match_number (struct worker_task *task, GList *args)
{
- char *param_pattern;
int param_count, res = 0;
- struct rspamd_regexp *re;
struct expression_argument *arg;
GList *cur;
@@ -444,21 +442,6 @@ rspamd_regexp_match_number (struct worker_task *task, GList *args)
}
}
else {
- param_pattern = (char *)arg->data;
- if (*param_pattern != '/') {
- /* Skip non-regexp arguments */
- cur = g_list_next (cur);
- continue;
- }
- /* This is regexp, so compile and create g_regexp object */
- if ((re = re_cache_check (param_pattern)) == NULL) {
- re = parse_regexp (task->task_pool, param_pattern, task->cfg->raw_mode);
- if (re == NULL) {
- msg_warn ("rspamd_regexp_match_number: cannot compile regexp for function");
- return FALSE;
- }
- re_cache_add (param_pattern, re);
- }
if (process_regexp_expression (cur->data, task)) {
res ++;
}