From a8ab2c9000c4d8e47d0c42b70db502793d490418 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 22 Oct 2025 11:00:56 +0300 Subject: [PATCH] auth: Don't do cache lookup on internal passdb failure when passdb_use_cache=no This was the only place where passdb_cache_lookup_credentials() caller didn't already check for key=NULL. --- src/auth/passdb-cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/passdb-cache.c b/src/auth/passdb-cache.c index 269ce49248..c378e538c0 100644 --- a/src/auth/passdb-cache.c +++ b/src/auth/passdb-cache.c @@ -161,7 +161,7 @@ bool passdb_cache_lookup_credentials(struct auth_request *request, struct auth_cache_node *node; bool neg_expired; - if (passdb_cache == NULL) + if (passdb_cache == NULL || key == NULL) return FALSE; if (!passdb_cache_lookup(request, key, use_expired, -- 2.47.3