]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
login-common: Reset auth_try_aborted if a new auth is started
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 22 Dec 2022 11:43:55 +0000 (13:43 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Thu, 23 Mar 2023 08:06:31 +0000 (08:06 +0000)
This only affects the disconnection log message. It is likely better to
forget about this state when a new auth attempt begins, since if the new
auth fails also it is likely something completely different.

src/login-common/sasl-server.c

index d9c66efc401d9bb3cbb085dcfaca4035b3a05662..4d458777595aec6f3d91b06e795670af80e72fd7 100644 (file)
@@ -511,6 +511,7 @@ void sasl_server_auth_begin(struct client *client, const char *mech_name,
        i_assert(auth_client_is_connected(auth_client));
 
        client->auth_attempts++;
+       client->auth_try_aborted = FALSE;
        client->authenticating = TRUE;
        client->master_auth_id = 0;
        if (client->auth_first_started == 0)