From cdf89b1d3b599cdc1716403dcc93f0ca4f06a247 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 3 Dec 2015 17:37:53 +0000 Subject: Fix code for the new cache --- src/plugins/regexp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/regexp.c') 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) { -- cgit v1.2.3