aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-03 17:37:53 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-03 17:37:53 +0000
commitcdf89b1d3b599cdc1716403dcc93f0ca4f06a247 (patch)
tree1bda580c4adfc748907cfc47f618fab38f76e86c /src/plugins
parent45e84668a1c7a7131db53e2b94375cfc98d68556 (diff)
downloadrspamd-cdf89b1d3b599cdc1716403dcc93f0ca4f06a247.tar.gz
rspamd-cdf89b1d3b599cdc1716403dcc93f0ca4f06a247.zip
Fix code for the new cache
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/regexp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c
index 08c38ffb9..efee83e35 100644
--- a/src/plugins/regexp.c
+++ b/src/plugins/regexp.c
@@ -129,7 +129,7 @@ regexp_module_config (struct rspamd_config *cfg)
if (g_ascii_strncasecmp (ucl_object_key (value), "max_size",
sizeof ("max_size") - 1) == 0) {
regexp_module_ctx->max_size = ucl_obj_toint (value);
- rspamd_mime_expression_set_re_limit (regexp_module_ctx->max_size);
+ rspamd_re_cache_set_limit (cfg->re_cache, regexp_module_ctx->max_size);
}
else if (g_ascii_strncasecmp (ucl_object_key (value), "max_threads",
sizeof ("max_threads") - 1) == 0) {