From: Timo Sirainen Date: Thu, 4 Mar 2010 18:50:05 +0000 (+0200) Subject: lib-master: Disconnect from auth service immediately after receiving reply. X-Git-Tag: 2.0.beta4~131 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=792fd7ace2a676a7db3e9e339c8044c17a6bfeb5;p=thirdparty%2Fdovecot%2Fcore.git lib-master: Disconnect from auth service immediately after receiving reply. With the current code we can't reuse the connection anyway. --HG-- branch : HEAD --- diff --git a/src/lib-master/master-login.c b/src/lib-master/master-login.c index 7c26fcd499..ed693aed5e 100644 --- a/src/lib-master/master-login.c +++ b/src/lib-master/master-login.c @@ -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);