From: Alan T. DeKok Date: Fri, 31 Oct 2025 11:30:43 +0000 (-0400) Subject: the clone code supports leaf attributes, so allow it here, too X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=059cf3b28899738b912d3236de65bc8ff3aefd5c;p=thirdparty%2Ffreeradius-server.git the clone code supports leaf attributes, so allow it here, too --- diff --git a/src/lib/util/dict_tokenize.c b/src/lib/util/dict_tokenize.c index 068d1dcc080..d190c8548ad 100644 --- a/src/lib/util/dict_tokenize.c +++ b/src/lib/util/dict_tokenize.c @@ -492,11 +492,6 @@ FLAG_FUNC(array) static int dict_flag_clone(fr_dict_attr_t **da_p, char const *value, UNUSED fr_dict_flag_parser_rule_t const *rules) { - if (((*da_p)->type != FR_TYPE_TLV) && ((*da_p)->type != FR_TYPE_STRUCT)) { - fr_strerror_const("'clone=...' references can only be used for 'tlv' and 'struct' types"); - return -1; - } - /* * Allow cloning of any types, so long as * the types are the same. We do the checks later.