From: Alan T. DeKok Date: Mon, 5 Jan 2026 15:39:19 +0000 (-0500) Subject: allow "length=..." for octets / string, even when not in an array X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e67eea5ae1955aaed797c53d6f1eb37efffc4f5;p=thirdparty%2Ffreeradius-server.git allow "length=..." for octets / string, even when not in an array --- diff --git a/src/lib/util/dict_validate.c b/src/lib/util/dict_validate.c index 37cbc69db14..2ae8ca1ea3e 100644 --- a/src/lib/util/dict_validate.c +++ b/src/lib/util/dict_validate.c @@ -261,10 +261,12 @@ bool dict_attr_flags_valid(fr_dict_attr_t *da) ALLOW_FLAG(array); if (!da_is_length_field(da)) { - fr_assert(0); goto invalid_extra; } + } else if (da_is_length_field(da)) { + /* this is allowed */ + } else if (flags->subtype) { invalid_extra: fr_strerror_const("Invalid type (not 'length=...') for extra flag.");