From: Timo Sirainen Date: Fri, 14 Feb 2025 11:42:07 +0000 (+0200) Subject: auth: Don't use auth failure delay for internal failures X-Git-Tag: 2.4.1~188 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5cda0c36e9458140bd11a97a8b4813a9d3bd4da8;p=thirdparty%2Fdovecot%2Fcore.git auth: Don't use auth failure delay for internal failures Internal failures nowadays have their own delays. --- diff --git a/src/auth/auth-request-handler.c b/src/auth/auth-request-handler.c index 01e768702c..424295cc84 100644 --- a/src/auth/auth-request-handler.c +++ b/src/auth/auth-request-handler.c @@ -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;