aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-06-20 17:10:12 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-06-20 17:10:12 +0400
commit3b4613bbac88e43127133d100ab769061800d277 (patch)
tree8c80546080b94cc2586bb41ee264a213db18d821
parentfba45df3a0f7620e128339cb4e4f95eb63ca5d6a (diff)
downloadrspamd-3b4613bbac88e43127133d100ab769061800d277.tar.gz
rspamd-3b4613bbac88e43127133d100ab769061800d277.zip
Fix reload command.
-rw-r--r--src/controller.c2
-rw-r--r--src/main.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/controller.c b/src/controller.c
index f69a90f8b..f899518fe 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -686,7 +686,7 @@ process_command (struct controller_command *cmd, gchar **cmd_args, struct contro
" sync - run synchronization of statfiles" CRLF
" counters - show rspamd counters" CRLF
" uptime - rspamd uptime" CRLF
- " weights <statfile> <size> - weight of message in all statfiles");
+ " weights <statfile> <size> - weight of message in all statfiles" CRLF);
if (! rspamd_dispatcher_write (session->dispatcher, out_buf, r, FALSE, FALSE)) {
return FALSE;
}
diff --git a/src/main.c b/src/main.c
index 3298c01a6..ae0148aa3 100644
--- a/src/main.c
+++ b/src/main.c
@@ -251,6 +251,7 @@ reread_config (struct rspamd_main *rspamd)
if (tmp_cfg) {
bzero (tmp_cfg, sizeof (struct config_file));
tmp_cfg->cfg_pool = memory_pool_new (memory_pool_get_size ());
+ tmp_cfg->modules_num = MODULES_NUM;
init_defaults (tmp_cfg);
cfg_file = memory_pool_strdup (tmp_cfg->cfg_pool, rspamd->cfg->cfg_name);
/* Save some variables */