]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Avoid auth failure delays entirely with auth_failure_delay=0
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 14 Feb 2025 11:43:46 +0000 (13:43 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 17 Feb 2025 18:46:28 +0000 (18:46 +0000)
src/auth/auth-request-handler.c

index 424295cc84566705cfb5841b3c21bbf56253b361..bfa7a73aace1f1ded81b8d0894d9d5df92c42431 100644 (file)
@@ -222,6 +222,11 @@ static bool auth_request_want_failure_delay(struct auth_request *request)
                /* internal failures have their own delay */
                return FALSE;
        }
+       if (request->set->failure_delay == 0) {
+               /* Auth failure delays are disabled entirely. This is mainly
+                  intended for making tests faster. */
+               return FALSE;
+       }
        if (shutting_down) {
                /* process is shutting down - finish failures immediately. */
                return FALSE;