Skip to content

Commit 6e67eea

Browse files
committed
allow "length=..." for octets / string, even when not in an array
1 parent 96fdadd commit 6e67eea

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/lib/util/dict_validate.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,12 @@ bool dict_attr_flags_valid(fr_dict_attr_t *da)
261261
ALLOW_FLAG(array);
262262

263263
if (!da_is_length_field(da)) {
264-
fr_assert(0);
265264
goto invalid_extra;
266265
}
267266

267+
} else if (da_is_length_field(da)) {
268+
/* this is allowed */
269+
268270
} else if (flags->subtype) {
269271
invalid_extra:
270272
fr_strerror_const("Invalid type (not 'length=...') for extra flag.");

0 commit comments

Comments
 (0)