]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-master: Disconnect from auth service immediately after receiving reply.
authorTimo Sirainen <tss@iki.fi>
Thu, 4 Mar 2010 18:50:05 +0000 (20:50 +0200)
committerTimo Sirainen <tss@iki.fi>
Thu, 4 Mar 2010 18:50:05 +0000 (20:50 +0200)
With the current code we can't reuse the connection anyway.

--HG--
branch : HEAD

src/lib-master/master-login.c

index 7c26fcd499ae58a7395e10b73f2f2f868ddca19a..ed693aed5e46ff72d0967f10c50365aa8c3d25e9 100644 (file)
@@ -185,11 +185,12 @@ static void master_login_auth_finish(struct master_login_client *client,
                master_login_auth_disconnect(login->auth);
 
                master_service_close_config_fd(service);
-               master_login_conn_deinit(&conn);
        } else if (login->stopping) {
                /* try stopping again */
                master_login_stop(login);
        }
+       /* FIXME: currently we create a separate connection for each request */
+       master_login_conn_deinit(&conn);
 
        client->fd = -1;
        master_login_client_free(&client);