diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2008-12-18 20:31:21 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2008-12-18 20:31:21 +0300 |
commit | 5f0da61541dd368961694b26766b12d051227844 (patch) | |
tree | 98f069f3db91ed38e7044ef022149e6bb6576121 /src/cfg_utils.c | |
parent | 9e9ced325226942bbfb6c4aa307f388044e29b23 (diff) | |
download | rspamd-5f0da61541dd368961694b26766b12d051227844.tar.gz rspamd-5f0da61541dd368961694b26766b12d051227844.zip |
* Make sample config more complete
* Fix bugs with config file parsing
* Fix bugs with creating sockets and reading commands
Diffstat (limited to 'src/cfg_utils.c')
-rw-r--r-- | src/cfg_utils.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cfg_utils.c b/src/cfg_utils.c index 72ae97517..fd3f4503f 100644 --- a/src/cfg_utils.c +++ b/src/cfg_utils.c @@ -123,11 +123,14 @@ parse_bind_line (struct config_file *cf, char *str, char is_control) return 0; } else { - cf->bind_host = memory_pool_strdup (cf->cfg_pool, cur_tok); + cf->control_host = memory_pool_strdup (cf->cfg_pool, cur_tok); memcpy((char *)&cf->control_addr, hent->h_addr, sizeof(struct in_addr)); s = strlen (cur_tok) + 1; } } + else { + cf->control_host = memory_pool_strdup (cf->cfg_pool, cur_tok); + } cf->control_family = AF_INET; } @@ -144,6 +147,9 @@ parse_bind_line (struct config_file *cf, char *str, char is_control) s = strlen (cur_tok) + 1; } } + else { + cf->bind_host = memory_pool_strdup (cf->cfg_pool, cur_tok); + } cf->bind_family = AF_INET; } |