]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-auth: Fix response code for internal auth process communication errors
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 25 Aug 2022 14:53:24 +0000 (17:53 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Fri, 9 Dec 2022 11:22:52 +0000 (11:22 +0000)
For example if auth process crashed, it resulted in [AUTHENTICATIONFAILED]
rather than [UNAVAILABLE].

This was forgotten to be changed in 36b072d84a9076c3c483bf710444a716e987ccc3

src/lib-auth/auth-client-connection.c

index 3a1e82c621c3b425e8fd36640da6c7f2c674c97a..40a95a89c22ffda5e76618f46862c399b46e0009 100644 (file)
@@ -345,7 +345,10 @@ static void
 auth_client_connection_remove_requests(struct auth_client_connection *conn,
                                       const char *disconnect_reason)
 {
-       static const char *const temp_failure_args[] = { "temp", NULL };
+       static const char *const temp_failure_args[] = {
+               "code="AUTH_CLIENT_FAIL_CODE_TEMPFAIL,
+               NULL
+       };
        struct hash_iterate_context *iter;
        void *key;
        struct auth_client_request *request;