]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
no local compiler errors, but CI complains
authorAlan T. DeKok <aland@freeradius.org>
Thu, 31 Aug 2023 15:03:11 +0000 (11:03 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 31 Aug 2023 15:03:11 +0000 (11:03 -0400)
src/modules/rlm_attr_filter/rlm_attr_filter.c

index 2ab87834f8625fba81656a753db1d2fbea246eff..06a5eb2f5c977c2dc7e9053cfd0e411e1af59e02 100644 (file)
@@ -125,14 +125,11 @@ static int attr_filter_getfile(TALLOC_CTX *ctx, module_inst_ctx_t const *mctx, c
 
                map = NULL;
                while ((map = map_list_next(&entry->reply, map))) {
-                       fr_dict_attr_t const *da;
-
                        if (!tmpl_is_attr(map->lhs)) {
                                ERROR("%s[%d] Left side of filter %s is not an attribute",
                                      filename, entry->lineno, map->lhs->name);
                                return -1;
                        }
-                       da = tmpl_attr_tail_da(map->lhs);
 
                        /*
                         *      Make sure that bad things don't happen.
@@ -243,7 +240,7 @@ static unlang_action_t CC_HINT(nonnull(1,2)) attr_filter_common(rlm_rcode_t *p_r
                                        continue;
                                }
                        } else if (check_item->da == attr_relax_filter) {
-                               relax_filter = check_item->vp_uint32;
+                               relax_filter = check_item->vp_bool;
                        }
 
                        /*