From: Vsevolod Stakhov Date: Mon, 20 Jun 2011 13:10:12 +0000 (+0400) Subject: Fix reload command. X-Git-Tag: 0.4.0~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b4613bbac88e43127133d100ab769061800d277;p=thirdparty%2Frspamd.git Fix reload command. --- diff --git a/src/controller.c b/src/controller.c index f69a90f8b8..f899518fe1 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 - weight of message in all statfiles"); + " weights - 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 3298c01a6b..ae0148aa3f 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 */