From: Markus Valentin Date: Tue, 7 Mar 2023 14:10:32 +0000 (+0100) Subject: login-common: client_get_extra_disconnect_reason() - Increase auth_aborted_by_client... X-Git-Tag: 2.4.0~2899 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6f103c6efd91f39a97ae3130ca3370900ddfb75;p=thirdparty%2Fdovecot%2Fcore.git login-common: client_get_extra_disconnect_reason() - Increase auth_aborted_by_client reason priority --- diff --git a/src/login-common/client-common.c b/src/login-common/client-common.c index 8cd8e59183..0ab299522d 100644 --- a/src/login-common/client-common.c +++ b/src/login-common/client-common.c @@ -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