aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-12-13 15:10:01 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-12-13 15:10:23 +0000
commit545463577aabc27c755db78a8ad5f931b9f3fc88 (patch)
treeddbe71c129ae6f934d30674d1258cc5c8394c97c /src/libserver/cfg_utils.c
parentda195bf5f1bf1e363d3bffdbf94bde32f9c5f60a (diff)
downloadrspamd-545463577aabc27c755db78a8ad5f931b9f3fc88.tar.gz
rspamd-545463577aabc27c755db78a8ad5f931b9f3fc88.zip
[Fix] Limit size of symbols options by max_opts_len option
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r--src/libserver/cfg_utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index 76731eec4..ca5c71ea9 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -197,6 +197,7 @@ rspamd_config_new (enum rspamd_config_init_flags flags)
cfg->cache_reload_time = 30.0;
cfg->max_lua_urls = 1024;
cfg->max_blas_threads = 1;
+ cfg->max_opts_len = 4096;
/* Default log line */
cfg->log_format_str = "id: <$mid>,$if_qid{ qid: <$>,}$if_ip{ ip: $,}"