]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Don't use auth failure delay for internal failures
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 14 Feb 2025 11:42:07 +0000 (13:42 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 17 Feb 2025 18:46:28 +0000 (18:46 +0000)
Internal failures nowadays have their own delays.

src/auth/auth-request-handler.c

index 01e768702c41a39046864a86a1dc8249579d6640..424295cc84566705cfb5841b3c21bbf56253b361 100644 (file)
@@ -218,6 +218,10 @@ static bool auth_request_want_failure_delay(struct auth_request *request)
                /* passdb specifically requested not to delay the reply. */
                return FALSE;
        }
+       if (request->internal_failure) {
+               /* internal failures have their own delay */
+               return FALSE;
+       }
        if (shutting_down) {
                /* process is shutting down - finish failures immediately. */
                return FALSE;