diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-10 23:31:20 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-10 23:31:20 +0100 |
commit | b90f502a92dd68c59e48154c086e272ed9064163 (patch) | |
tree | 2dfb886ae577282e82bf3a54a5d8179bc3859423 /src/plugins | |
parent | dfacc06c519b4fedb6260b2a3b8e789cf9137273 (diff) | |
download | rspamd-b90f502a92dd68c59e48154c086e272ed9064163.tar.gz rspamd-b90f502a92dd68c59e48154c086e272ed9064163.zip |
Set re limit from regexp module.
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/regexp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c index 27cbf924f..59f5427df 100644 --- a/src/plugins/regexp.c +++ b/src/plugins/regexp.c @@ -126,6 +126,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); } else if (g_ascii_strncasecmp (ucl_object_key (value), "max_threads", sizeof ("max_threads") - 1) == 0) { |