From: Timo Sirainen Date: Wed, 22 Oct 2025 08:00:56 +0000 (+0300) Subject: auth: Don't do cache lookup on internal passdb failure when passdb_use_cache=no X-Git-Tag: 2.4.2~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a8ab2c9000c4d8e47d0c42b70db502793d490418;p=thirdparty%2Fdovecot%2Fcore.git 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. --- 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,