Mercurial > dovecot > core-2.2
changeset 9921:5bcb78c2eabb HEAD
*-login: Don't leak client when it's aborted while waiting for reply from master.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 10 Sep 2009 18:51:09 -0400 |
parents | b1857ba4347a |
children | 2e94a44c34ff |
files | src/login-common/client-common.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/login-common/client-common.c Thu Sep 10 16:49:44 2009 -0400 +++ b/src/login-common/client-common.c Thu Sep 10 18:51:09 2009 -0400 @@ -124,7 +124,10 @@ if (client->master_tag != 0) { i_assert(client->auth_request == NULL); i_assert(client->authenticating); + i_assert(client->refcount > 1); + client->authenticating = FALSE; master_auth_request_abort(master_service, client->master_tag); + client->refcount--; } else if (client->auth_request != NULL) { i_assert(client->authenticating); sasl_server_auth_abort(client);