]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
login: Fixed crash with service_count=1 and when reaching max number of connections...
authorTimo Sirainen <tss@iki.fi>
Mon, 14 Jun 2010 15:15:57 +0000 (16:15 +0100)
committerTimo Sirainen <tss@iki.fi>
Mon, 14 Jun 2010 15:15:57 +0000 (16:15 +0100)
--HG--
branch : HEAD

src/login-common/sasl-server.c

index b1752dc00170507a4663262a412e5a79428c0220..2132b3d66c95b5595b474b4ee4659abc83da79b3 100644 (file)
@@ -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);
 }