if (!clients) {
if (client->server != NULL) {
CONF_SECTION *cs;
+ CONF_SECTION *listen;
cs = cf_section_sub_find_name2(mainconfig.config,
"server", client->server);
}
/*
+ * If this server has no "listen" section, add the clients
+ * to the global client list.
+ */
+ listen = cf_section_sub_find(cs, "listen");
+ if (!listen) goto global_clients;
+
+ /*
* If the client list already exists, use that.
* Otherwise, create a new client list.
*/
}
} else {
+ global_clients:
/*
* Initialize the global list, if not done already.
*/