aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-04-13 19:37:29 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-04-13 19:37:29 +0400
commitd4b35de4315753629ac5b107968e6194eac85d24 (patch)
tree586556d88d897b3de243446b9daf8292bf74e2f8 /src/main.c
parentd2e2f5ec1a54c6e7c2348d204b3fc3a09849003d (diff)
downloadrspamd-d4b35de4315753629ac5b107968e6194eac85d24.tar.gz
rspamd-d4b35de4315753629ac5b107968e6194eac85d24.zip
* Add lua config for most common rules
* Reset lua state while reloading
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index e3bf1738d..2c02e82b1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -264,7 +264,7 @@ reread_config (struct rspamd_main *rspamd)
cfg_file = memory_pool_strdup (tmp_cfg->cfg_pool, rspamd->cfg->cfg_name);
/* Save some variables */
tmp_cfg->cfg_name = cfg_file;
- tmp_cfg->lua_state = rspamd->cfg->lua_state;
+ init_lua (tmp_cfg);
if (! load_rspamd_config (tmp_cfg)) {
msg_err ("cannot parse new config file, revert to old one");