[dovecot-cvs] dovecot/src/imap-login client-authenticate.c, 1.43, 1.44 client.c, 1.59, 1.60
tss at dovecot.org
tss at dovecot.org
Sun Nov 12 12:41:35 UTC 2006
Update of /var/lib/cvs/dovecot/src/imap-login
In directory talvi:/tmp/cvs-serv14605/imap-login
Modified Files:
client-authenticate.c client.c
Log Message:
Fixed potential problems with client disconnecting while master was handling
the login.
Index: client-authenticate.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap-login/client-authenticate.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- client-authenticate.c 7 Nov 2006 15:06:23 -0000 1.43
+++ client-authenticate.c 12 Nov 2006 12:41:32 -0000 1.44
@@ -182,7 +182,9 @@
const char *msg;
size_t data_len;
- i_assert(!client->destroyed || reply == SASL_SERVER_REPLY_CLIENT_ERROR);
+ i_assert(!client->destroyed ||
+ reply == SASL_SERVER_REPLY_CLIENT_ERROR ||
+ reply == SASL_SERVER_REPLY_MASTER_FAILED);
switch (reply) {
case SASL_SERVER_REPLY_SUCCESS:
Index: client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap-login/client.c,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -d -r1.59 -r1.60
--- client.c 7 Nov 2006 15:19:34 -0000 1.59
+++ client.c 12 Nov 2006 12:41:32 -0000 1.60
@@ -468,6 +468,9 @@
if (client->output != NULL)
o_stream_close(client->output);
+ if (client->common.master_tag != 0)
+ master_request_abort(&client->common);
+
if (client->common.auth_request != NULL) {
i_assert(client->common.authenticating);
sasl_server_auth_client_error(&client->common, NULL);
@@ -475,9 +478,6 @@
i_assert(!client->common.authenticating);
}
- if (client->common.master_tag != 0)
- master_request_abort(&client->common);
-
if (client->io != NULL)
io_remove(&client->io);
More information about the dovecot-cvs
mailing list