From 25ef6b98215f5518dae638ce0fd6b4710f17b113 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 24 May 2018 19:55:37 +0100 Subject: [Project] Rework rspamadm and Lua init path --- src/rspamd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rspamd.c') diff --git a/src/rspamd.c b/src/rspamd.c index cc3be3357..d6490d6aa 100644 --- a/src/rspamd.c +++ b/src/rspamd.c @@ -276,7 +276,7 @@ reread_config (struct rspamd_main *rspamd_main) gchar *cfg_file; rspamd_symbols_cache_save (rspamd_main->cfg->cache); - tmp_cfg = rspamd_config_new (); + tmp_cfg = rspamd_config_new (RSPAMD_CONFIG_INIT_DEFAULT); g_hash_table_unref (tmp_cfg->c_modules); tmp_cfg->c_modules = g_hash_table_ref (rspamd_main->cfg->c_modules); tmp_cfg->libs_ctx = rspamd_main->cfg->libs_ctx; @@ -1180,7 +1180,7 @@ main (gint argc, gchar **argv, gchar **env) "main"); rspamd_main->stat = rspamd_mempool_alloc0_shared (rspamd_main->server_pool, sizeof (struct rspamd_stat)); - rspamd_main->cfg = rspamd_config_new (); + rspamd_main->cfg = rspamd_config_new (RSPAMD_CONFIG_INIT_DEFAULT); rspamd_main->spairs = g_hash_table_new_full (rspamd_spair_hash, rspamd_spair_equal, g_free, rspamd_spair_close); rspamd_main->start_mtx = rspamd_mempool_get_mutex (rspamd_main->server_pool); -- cgit v1.2.3