From: Alan T. DeKok Date: Tue, 3 Sep 2024 19:32:03 +0000 (-0400) Subject: don't copy children of a group X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b211630de7da33931cbe4674964228a34e2dd513;p=thirdparty%2Ffreeradius-server.git don't copy children of a group --- diff --git a/src/lib/unlang/compile.c b/src/lib/unlang/compile.c index 93a8ffbdc48..090cdc591d8 100644 --- a/src/lib/unlang/compile.c +++ b/src/lib/unlang/compile.c @@ -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;