summaryrefslogtreecommitdiff
path: root/src/core/servers-setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/servers-setup.c')
-rw-r--r--src/core/servers-setup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/servers-setup.c b/src/core/servers-setup.c
index 8289b2c3..1412a1a7 100644
--- a/src/core/servers-setup.c
+++ b/src/core/servers-setup.c
@@ -493,7 +493,8 @@ static void read_servers(void)
/* Read servers */
node = iconfig_node_traverse("servers", FALSE);
if (node != NULL) {
- for (tmp = node->value; tmp != NULL; tmp = tmp->next)
+ tmp = config_node_first(node->value);
+ for (; tmp != NULL; tmp = config_node_next(tmp))
server_setup_read(tmp->data);
}
}