From: Alan T. DeKok Date: Wed, 16 Mar 2022 13:41:51 +0000 (-0400) Subject: allow fixed-width string/octet types in an array X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=715997169adb1d7b850c5e0930003293ef401872;p=thirdparty%2Ffreeradius-server.git allow fixed-width string/octet types in an array --- diff --git a/src/lib/util/dict_validate.c b/src/lib/util/dict_validate.c index 1f28e5b218f..6496cadfae3 100644 --- a/src/lib/util/dict_validate.c +++ b/src/lib/util/dict_validate.c @@ -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. */