Skip to content

Commit

Permalink
don't copy children of a group
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Sep 3, 2024
1 parent d4e526e commit b211630
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/unlang/compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b211630

Please sign in to comment.