]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
the clone code supports leaf attributes, so allow it here, too
authorAlan T. DeKok <aland@freeradius.org>
Fri, 31 Oct 2025 11:30:43 +0000 (07:30 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 31 Oct 2025 13:30:26 +0000 (09:30 -0400)
src/lib/util/dict_tokenize.c

index 068d1dcc0801bda1a76da2302f1541135824f0ec..d190c8548ad84d4563eb024006c090070f52b9b5 100644 (file)
@@ -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.