]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix const issue in rlm_sql
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 12 May 2024 18:08:25 +0000 (12:08 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 12 May 2024 18:08:25 +0000 (12:08 -0600)
src/modules/rlm_sql/rlm_sql.c

index b3695e55ec04527cdc0afb65e685156462e78d2e..d79e227e2bcae40c4ecc9a5c31eab10488e8097e 100644 (file)
@@ -561,7 +561,7 @@ static int sql_map_verify(CONF_SECTION *cs, UNUSED void const *mod_inst, UNUSED
 static unlang_action_t mod_map_proc(rlm_rcode_t *p_result, void const *mod_inst, UNUSED void *proc_inst, request_t *request,
                                    fr_value_box_list_t *query, map_list_t const *maps)
 {
-       rlm_sql_t               *inst = talloc_get_type_abort(mod_inst, rlm_sql_t);
+       rlm_sql_t const         *inst = talloc_get_type_abort_const(mod_inst, rlm_sql_t);
        rlm_sql_handle_t        *handle = NULL;
 
        int                     i, j;