]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Make struct settings_get_params params const
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 25 Feb 2026 07:33:25 +0000 (09:33 +0200)
committerRebaser <foobar@foobar>
Thu, 26 Mar 2026 08:41:12 +0000 (08:41 +0000)
src/auth/passdb-sql.c
src/auth/userdb-sql.c

index c47886003091898bb695fcfc138099093d2bb6d8..c3bdf0524e9ed9ba4a2e3f52dedfffeb90c042fa 100644 (file)
@@ -181,7 +181,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,
        };
index 53bc35ea88f09742d36ceffaf8ab97d3c102f24e..79380f4b74071d401abb94504d0c5b17b71cdbf7 100644 (file)
@@ -127,7 +127,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,
        };