From: Timo Sirainen Date: Mon, 14 Jun 2010 15:15:57 +0000 (+0100) Subject: login: Fixed crash with service_count=1 and when reaching max number of connections... X-Git-Tag: 2.0.rc1~176 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9170a617ca423d52c69dd10a5d2070815b85d8bf;p=thirdparty%2Fdovecot%2Fcore.git login: Fixed crash with service_count=1 and when reaching max number of connections from user+ip. --HG-- branch : HEAD --- diff --git a/src/login-common/sasl-server.c b/src/login-common/sasl-server.c index b1752dc001..2132b3d66c 100644 --- a/src/login-common/sasl-server.c +++ b/src/login-common/sasl-server.c @@ -151,11 +151,11 @@ static void anvil_lookup_callback(const char *reply, void *context) 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); }