]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
allow fixed-width string/octet types in an array
authorAlan T. DeKok <aland@freeradius.org>
Wed, 16 Mar 2022 13:41:51 +0000 (09:41 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 16 Mar 2022 13:41:51 +0000 (09:41 -0400)
src/lib/util/dict_validate.c

index 1f28e5b218f85f23a0fe832f8f2a415798f0e205..6496cadfae3f17dce92049dd8f20ccb850e39ff2 100644 (file)
@@ -440,6 +440,8 @@ bool dict_attr_flags_valid(fr_dict_t *dict, fr_dict_attr_t const *parent,
                break;
        }
 
+       flags->is_known_width |= (flags->length > 0); /* for fixed-size string / octets */
+
        /*
         *      type_size is used to limit the maximum attribute number, so it's checked first.
         */