From 5cda0c36e9458140bd11a97a8b4813a9d3bd4da8 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 14 Feb 2025 13:42:07 +0200 Subject: [PATCH] auth: Don't use auth failure delay for internal failures Internal failures nowadays have their own delays. --- src/auth/auth-request-handler.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.47.3