From: Alan T. DeKok Date: Thu, 21 May 2020 12:23:30 +0000 (-0400) Subject: allow attributes of type "struct" with flag "internal" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0d976841b69df26e7df063cc54831483dc0c5a4;p=thirdparty%2Ffreeradius-server.git allow attributes of type "struct" with flag "internal" These attributes don't do anything right now, so they can't be problematic. The hope is to allow structs for pack / unpack xlats --- diff --git a/src/lib/util/dict_validate.c b/src/lib/util/dict_validate.c index b5aeccc8481..25d4af1897a 100644 --- a/src/lib/util/dict_validate.c +++ b/src/lib/util/dict_validate.c @@ -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;