From: Aki Tuomi Date: Fri, 25 Jul 2025 08:52:36 +0000 (+0300) Subject: auth: auth-cache - Treat cache key parsing errors as fatals X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=20d15baa071747f91176eb3115235aa8c78a3d11;p=thirdparty%2Fdovecot%2Fcore.git auth: auth-cache - Treat cache key parsing errors as fatals Avoids accidentically turning off caching --- diff --git a/src/auth/auth-cache.c b/src/auth/auth-cache.c index 407e5d4aa0..be56934918 100644 --- a/src/auth/auth-cache.c +++ b/src/auth/auth-cache.c @@ -147,10 +147,8 @@ char *auth_cache_parse_key_and_fields(pool_t pool, const char *query, char *cache_key; const char *error; if (auth_cache_parse_key_exclude(pool, query, exclude_driver, - &cache_key, &error) < 0) { - e_debug(auth_event, "auth-cache: %s", error); - cache_key = p_strdup(pool, ""); - } + &cache_key, &error) < 0) + i_fatal("auth-cache: %s", error); return cache_key; }