dovecot-2.0: login: Fixed crash with service_count=1 and when re...

dovecot at dovecot.org dovecot at dovecot.org
Mon Jun 14 18:16:05 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/05700fe85e22
changeset: 11542:05700fe85e22
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jun 14 16:15:57 2010 +0100
description:
login: Fixed crash with service_count=1 and when reaching max number of connections from user+ip.

diffstat:

 src/login-common/sasl-server.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (16 lines):

diff -r 07a7d352af66 -r 05700fe85e22 src/login-common/sasl-server.c
--- a/src/login-common/sasl-server.c	Mon Jun 14 16:07:44 2010 +0100
+++ b/src/login-common/sasl-server.c	Mon Jun 14 16:15:57 2010 +0100
@@ -151,11 +151,11 @@
 		master_send_request(req);
 	else {
 		client->authenticating = FALSE;
+		auth_client_send_cancel(auth_client, req->auth_id);
 		errmsg = t_strdup_printf(ERR_TOO_MANY_USERIP_CONNECTIONS,
 					 set->mail_max_userip_connections);
 		call_client_callback(client, SASL_SERVER_REPLY_MASTER_FAILED,
 				     errmsg, NULL);
-		auth_client_send_cancel(auth_client, req->auth_id);
 	}
 	i_free(req);
 }


More information about the dovecot-cvs mailing list