]> source.dussan.org Git - rspamd.git/commitdiff
Fix reload command.
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 20 Jun 2011 13:10:12 +0000 (17:10 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 20 Jun 2011 13:10:12 +0000 (17:10 +0400)
src/controller.c
src/main.c

index f69a90f8b8e0e68277de20e622c5056bd9145469..f899518fe181e7a60aa77b010567dbaa1cee89a7 100644 (file)
@@ -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;
                }
index 3298c01a6b5e6cfc332771827ea675632fd79785..ae0148aa3f34f675506c652f596abf2ff827881f 100644 (file)
@@ -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 */