From: Timo Sirainen Date: Tue, 10 Mar 2026 19:05:48 +0000 (+0200) Subject: login-common: Improve logging internal failure errors for proxy reauth X-Git-Tag: 2.4.3~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1b0cbf021c4fa7325f9ff56593cea3db561cf05;p=thirdparty%2Fdovecot%2Fcore.git login-common: Improve logging internal failure errors for proxy reauth --- diff --git a/src/login-common/client-common-auth.c b/src/login-common/client-common-auth.c index d3623a9941..c1bfe8b24d 100644 --- a/src/login-common/client-common-auth.c +++ b/src/login-common/client-common-auth.c @@ -389,7 +389,7 @@ static void proxy_reset(struct client *client) static void proxy_redirect_reauth_callback(struct auth_client_request *request, enum auth_request_status status, - const char *log_error ATTR_UNUSED, + const char *log_error, const char *data_base64 ATTR_UNUSED, const char *const *args, void *context) { @@ -438,18 +438,16 @@ proxy_redirect_reauth_callback(struct auth_client_request *request, error = "Redirect authentication is missing proxy or nologin field"; break; case AUTH_REQUEST_STATUS_INTERNAL_FAIL: - error = "Internal authentication failure"; + error = log_error; break; case AUTH_REQUEST_STATUS_FAIL: if (!client_auth_parse_args(client, FALSE, TRUE, args, &reply, &username)) error = "Failed to parse auth reply"; - else if (reply.reason == NULL || reply.reason[0] == '\0') - error = "Redirect authentication unexpectedly failed"; else error = t_strdup_printf( "Redirect authentication unexpectedly failed: %s", - reply.reason); + log_error); break; case AUTH_REQUEST_STATUS_ABORT: if (client->login_proxy == NULL)