diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-06-01 15:52:11 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-06-01 15:52:11 +0100 |
commit | 37845898cbf779c7d3b5664997d0db48968c929c (patch) | |
tree | a190b5ee9d152ba60135136bbe8108d7da81166c /src/cfg_xml.c | |
parent | 8cc2aee8859731ee2fe280070423f79e7d009ca3 (diff) | |
download | rspamd-37845898cbf779c7d3b5664997d0db48968c929c.tar.gz rspamd-37845898cbf779c7d3b5664997d0db48968c929c.zip |
Rework socket creation logic to support both ipv4 and ipv6 sockets.
Diffstat (limited to 'src/cfg_xml.c')
-rw-r--r-- | src/cfg_xml.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cfg_xml.c b/src/cfg_xml.c index 3d58d128e..a325b3b7a 100644 --- a/src/cfg_xml.c +++ b/src/cfg_xml.c @@ -1655,7 +1655,7 @@ handle_statfile_binlog_master (struct config_file *cfg, struct rspamd_xml_userda st->binlog = memory_pool_alloc0 (cfg->cfg_pool, sizeof (struct statfile_binlog_params)); } - if (!parse_host_port (data, &st->binlog->master_addr, &st->binlog->master_port)) { + if (!parse_host_port (cfg->cfg_pool, data, &st->binlog->master_addr, &st->binlog->master_port)) { msg_err ("cannot parse master address: %s", data); return FALSE; } @@ -2849,7 +2849,7 @@ xml_dump_classifiers (struct config_file *cfg, FILE *f) else if (st->binlog->affinity == AFFINITY_SLAVE) { rspamd_fprintf (f, " <binlog>slave</binlog>" EOL); rspamd_fprintf (f, " <binlog_master>%s:%d</binlog_master>" EOL, - inet_ntoa (st->binlog->master_addr), (gint)ntohs (st->binlog->master_port)); + st->binlog->master_addr, (gint)ntohs (st->binlog->master_port)); } rspamd_fprintf (f, " <binlog_rotate>%T</binlog_rotate>" EOL, st->binlog->rotate_time); } |