}
static void
-client_connected_finish(const struct master_service_connection *conn)
+client_connected(struct master_service_connection *conn)
{
struct client *client;
const struct login_settings *set;
pool_t pool;
void **other_sets;
+ master_service_client_connection_accept(conn);
+
+ if (conn->remote_ip.family != 0) {
+ /* log the connection's IP address in case we crash. it's of
+ course possible that another earlier client causes the
+ crash, but this is better than nothing. */
+ i_set_failure_send_ip(&conn->remote_ip);
+ }
+
+ /* make sure we're connected (or attempting to connect) to auth */
+ auth_client_connect(auth_client);
+
pool = pool_alloconly_create("login client", 8*1024);
set = login_settings_read(pool, &conn->local_ip,
&conn->remote_ip, NULL,
.cmd_kick_user = master_admin_cmd_kick_user,
};
-static void client_connected(struct master_service_connection *conn)
-{
- master_service_client_connection_accept(conn);
-
- if (conn->remote_ip.family != 0) {
- /* log the connection's IP address in case we crash. it's of
- course possible that another earlier client causes the
- crash, but this is better than nothing. */
- i_set_failure_send_ip(&conn->remote_ip);
- }
-
- /* make sure we're connected (or attempting to connect) to auth */
- auth_client_connect(auth_client);
-
- client_connected_finish(conn);
-}
-
static void auth_connect_notify(struct auth_client *client ATTR_UNUSED,
bool connected, void *context ATTR_UNUSED)
{