aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-16 13:30:04 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-16 13:30:04 +0000
commit59b0122f6c8a8f92060f859c1a9bbd75f5fe3bd5 (patch)
tree43ebdc9ca49a0ba2382402dd8b4a993b1a3d7a8d /src/libserver/cfg_utils.c
parent6d6fd9250e371f58435810e250a0dedb8166ee01 (diff)
downloadrspamd-59b0122f6c8a8f92060f859c1a9bbd75f5fe3bd5.tar.gz
rspamd-59b0122f6c8a8f92060f859c1a9bbd75f5fe3bd5.zip
Allow multiple workers of the same type to be configured
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r--src/libserver/cfg_utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index b72dfa70d..185c28adb 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -174,6 +174,7 @@ rspamd_config_new (void)
cfg->metrics_symbols = g_hash_table_new (rspamd_str_hash, rspamd_str_equal);
cfg->debug_modules = g_hash_table_new (rspamd_str_hash, rspamd_str_equal);
cfg->explicit_modules = g_hash_table_new (rspamd_str_hash, rspamd_str_equal);
+ cfg->wrk_parsers = g_hash_table_new (g_int_hash, g_int_equal);
cfg->map_timeout = DEFAULT_MAP_TIMEOUT;
@@ -221,6 +222,7 @@ rspamd_config_free (struct rspamd_config *cfg)
g_hash_table_unref (cfg->classifiers_symbols);
g_hash_table_unref (cfg->debug_modules);
g_hash_table_unref (cfg->explicit_modules);
+ g_hash_table_unref (cfg->wrk_parsers);
if (cfg->checksum) {
g_free (cfg->checksum);