]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
login-common: client_get_extra_disconnect_reason() - Increase auth_aborted_by_client...
authorMarkus Valentin <markus.valentin@open-xchange.com>
Tue, 7 Mar 2023 14:10:32 +0000 (15:10 +0100)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Thu, 23 Mar 2023 08:06:31 +0000 (08:06 +0000)
src/login-common/client-common.c

index 8cd8e591838a892ade7f881aad55d027e390d96d..0ab299522df20a3b12b766d92dc78a02561ae53f 100644 (file)
@@ -1186,6 +1186,9 @@ bool client_get_extra_disconnect_reason(struct client *client,
        if (client->auth_process_comm_fail) {
                *event_reason_r = "auth_process_comm_fail";
                last_reason = "auth process communication failure";
+       } else if (client->auth_aborted_by_client) {
+               *event_reason_r = "auth_aborted_by_client";
+               last_reason = "auth aborted by client";
        } else if (client->auth_client_continue_pending) {
                *event_reason_r = "auth_waiting_client";
                last_reason = "client didn't finish SASL auth";
@@ -1196,9 +1199,6 @@ bool client_get_extra_disconnect_reason(struct client *client,
                i_assert(client->master_tag != 0);
                *event_reason_r = "auth_waiting_server_finish";
                last_reason = "disconnected while finishing login";
-       } else if (client->auth_aborted_by_client) {
-               *event_reason_r = "auth_aborted_by_client";
-               last_reason = "auth aborted by client";
        } else if (client->auth_nologin_referral) {
                /* Referral was sent to the connecting client, which is
                   expected to be a trusted Dovecot proxy. There should be no