Skip to content

Commit ebd97d0

Browse files
czp182alandekok
authored andcommitted
max_attr not incremented after partial failure
(found by claude code)
1 parent e693402 commit ebd97d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/unlang/compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1986,13 +1986,13 @@ int unlang_define_local_variable(CONF_ITEM *ci, unlang_variable_t *var, tmpl_rul
19861986
/*
19871987
* Copy the children over.
19881988
*/
1989+
var->max_attr++;
19891990
if (fr_type_is_structural(type) && (type != FR_TYPE_GROUP)) {
19901991
fr_fatal_assert(ref != NULL);
19911992

19921993
if (fr_dict_attr_acopy_local(da, ref) < 0) goto fail;
19931994
}
19941995

1995-
var->max_attr++;
19961996

19971997
return 0;
19981998
}

0 commit comments

Comments
 (0)