summaryrefslogtreecommitdiffstats
path: root/src/rspamd.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-12 15:14:35 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-12 15:14:35 +0000
commit56fdb79c495ab76cbde7cc7b12d3751b662fb9c4 (patch)
tree43fde227600ce7cd3036e12eb9799108fde399bd /src/rspamd.c
parent7ea334cd83f09d7c7ad7f1795cbf702fd137979c (diff)
downloadrspamd-56fdb79c495ab76cbde7cc7b12d3751b662fb9c4.tar.gz
rspamd-56fdb79c495ab76cbde7cc7b12d3751b662fb9c4.zip
Add external libraries context
Diffstat (limited to 'src/rspamd.c')
-rw-r--r--src/rspamd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rspamd.c b/src/rspamd.c
index a079ab603..edaa5a52f 100644
--- a/src/rspamd.c
+++ b/src/rspamd.c
@@ -271,6 +271,7 @@ reread_config (struct rspamd_main *rspamd_main)
tmp_cfg = (struct rspamd_config *)g_malloc0 (sizeof (struct rspamd_config));
tmp_cfg->c_modules = g_hash_table_ref (rspamd_main->cfg->c_modules);
+ tmp_cfg->libs_ctx = rspamd_main->cfg->libs_ctx;
rspamd_set_logger (tmp_cfg, g_quark_try_string ("main"), rspamd_main);
rspamd_init_cfg (tmp_cfg, TRUE);
cfg_file = rspamd_mempool_strdup (tmp_cfg->cfg_pool,
@@ -817,7 +818,7 @@ main (gint argc, gchar **argv, gchar **env)
init_title (argc, argv, env);
#endif
- rspamd_init_libs ();
+ rspamd_main->cfg->libs_ctx = rspamd_init_libs ();
rspamd_init_cfg (rspamd_main->cfg, TRUE);
memset (&signals, 0, sizeof (struct sigaction));