From: Alan T. DeKok Date: Sat, 25 Feb 2023 14:59:45 +0000 (-0500) Subject: both string and octets can be fixed size in arrays X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f32c508615b593f856ff60fb4c6f1472a6e86fe3;p=thirdparty%2Ffreeradius-server.git both string and octets can be fixed size in arrays --- diff --git a/src/lib/util/dict_validate.c b/src/lib/util/dict_validate.c index 5184bad9693..764030c30ab 100644 --- a/src/lib/util/dict_validate.c +++ b/src/lib/util/dict_validate.c @@ -208,13 +208,12 @@ bool dict_attr_flags_valid(fr_dict_t *dict, fr_dict_attr_t const *parent, break; case FR_TYPE_OCTETS: + case FR_TYPE_STRING: if (flags->length != 0) { - fr_strerror_const("Cannot use [..] and length=uint16"); + fr_strerror_const("Cannot use [..] and length=uint..."); return false; } - FALL_THROUGH; - case FR_TYPE_STRING: /* * We can do arrays of variable-length types, so long as they have a "length=" * modifier.