aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-12 15:52:46 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-12 15:52:46 +0000
commit56cd194353fbe0be188b69c398d05f72c77a0b17 (patch)
tree1be7310078da085ca8e7ea5982528c5623e11c5c /src/libserver
parente9b343c6b5776ac9884cb07117bfd08f29cd9e13 (diff)
downloadrspamd-56cd194353fbe0be188b69c398d05f72c77a0b17.tar.gz
rspamd-56cd194353fbe0be188b69c398d05f72c77a0b17.zip
Bind line configuration adoptation for inet_addr.
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/cfg_file.h2
-rw-r--r--src/libserver/cfg_utils.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h
index 44728afe8..08b70f5c9 100644
--- a/src/libserver/cfg_file.h
+++ b/src/libserver/cfg_file.h
@@ -163,7 +163,7 @@ struct rspamd_classifier_config {
};
struct rspamd_worker_bind_conf {
- rspamd_inet_addr_t *addrs;
+ GPtrArray *addrs;
guint cnt;
gchar *name;
gboolean is_systemd;
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index 80e812fe4..19fac3488 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -125,7 +125,7 @@ rspamd_parse_bind_line (struct rspamd_config *cfg,
}
else {
if (!rspamd_parse_host_port_priority_strv (tokens, &cnf->addrs,
- &cnf->cnt, NULL, &cnf->name, DEFAULT_BIND_PORT, cfg->cfg_pool)) {
+ NULL, &cnf->name, DEFAULT_BIND_PORT, cfg->cfg_pool)) {
msg_err ("cannot parse bind line: %s", str);
ret = FALSE;
}