]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
allow attributes of type "struct" with flag "internal"
authorAlan T. DeKok <aland@freeradius.org>
Thu, 21 May 2020 12:23:30 +0000 (08:23 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 21 May 2020 12:25:36 +0000 (08:25 -0400)
These attributes don't do anything right now, so they can't
be problematic.

The hope is to allow structs for pack / unpack xlats

src/lib/util/dict_validate.c

index b5aeccc8481af52c1a625bf1fa2ec27c82cf4d04..25d4af1897ab6e126983f1a3c09f5f35c52c3c08 100644 (file)
@@ -352,6 +352,7 @@ bool dict_attr_flags_valid(fr_dict_t *dict, fr_dict_attr_t const *parent,
        case FR_TYPE_STRUCT:
                flags->length = 0;
 
+               ALLOW_FLAG(internal);
                if (all_flags) {
                        fr_strerror_printf("Invalid flag for attribute of type 'struct'");
                        return false;