From: Timo Sirainen Date: Wed, 25 Feb 2026 07:33:25 +0000 (+0200) Subject: [PATCH 04/24] auth: Make struct settings_get_params params const X-Git-Tag: archive/raspbian/1%2.4.1+dfsg1-6+rpi1+deb13u4^2~22 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3bb609487e707d3afc2d2953f5908eec476f8c80;p=dovecot.git [PATCH 04/24] auth: Make struct settings_get_params params const Gbp-Pq: Name CVE-2026-24031-27860-1.patch --- diff --git a/src/auth/passdb-sql.c b/src/auth/passdb-sql.c index db1990d..f3682d4 100644 --- a/src/auth/passdb-sql.c +++ b/src/auth/passdb-sql.c @@ -182,7 +182,7 @@ static void sql_lookup_pass(struct passdb_sql_request *sql_request) const struct passdb_sql_settings *set; const char *error; - struct settings_get_params params = { + const struct settings_get_params params = { .escape_func = passdb_sql_escape, .escape_context = module->db, }; diff --git a/src/auth/userdb-sql.c b/src/auth/userdb-sql.c index f97fe5e..349f61c 100644 --- a/src/auth/userdb-sql.c +++ b/src/auth/userdb-sql.c @@ -128,7 +128,7 @@ static void userdb_sql_lookup(struct auth_request *auth_request, const struct userdb_sql_settings *set; const char *error; - struct settings_get_params params = { + const struct settings_get_params params = { .escape_func = userdb_sql_escape, .escape_context = module->db, };