]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
don't copy children of a group
authorAlan T. DeKok <aland@freeradius.org>
Tue, 3 Sep 2024 19:32:03 +0000 (15:32 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 3 Sep 2024 19:32:03 +0000 (15:32 -0400)
src/lib/unlang/compile.c

index 93a8ffbdc48101c7198346596ef4eabb48bdf6c7..090cdc591d8fbf10cb53ed003945a54ec35e42f0 100644 (file)
@@ -1668,7 +1668,7 @@ static int define_local_variable(CONF_ITEM *ci, unlang_variable_t *var, tmpl_rul
        /*
         *      Copy the children over.
         */
-       if (fr_type_is_structural(type)) {
+       if (fr_type_is_structural(type) && (type != FR_TYPE_GROUP)) {
                fr_assert(ref != NULL);
 
                if (fr_dict_attr_acopy_local(da, ref) < 0) goto fail;