From: Alan T. DeKok Date: Tue, 5 Sep 2023 13:36:39 +0000 (-0400) Subject: only set fixed length for leaf types which have fixed length X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f190beea2425dfa6b4076387d21af1dd0190647b;p=thirdparty%2Ffreeradius-server.git only set fixed length for leaf types which have fixed length --- diff --git a/src/lib/util/dict_validate.c b/src/lib/util/dict_validate.c index aa891a90f72..4ff8ff0f926 100644 --- a/src/lib/util/dict_validate.c +++ b/src/lib/util/dict_validate.c @@ -677,7 +677,7 @@ bool dict_attr_fields_valid(fr_dict_t *dict, fr_dict_attr_t const *parent, /* * Initialize the length field, which is needed for the attr_valid() callback. */ - if (!flags->length) { + if (!flags->length && fr_type_is_leaf(type) && !fr_type_is_variable_size(type)) { fr_value_box_t box; fr_value_box_init(&box, type, NULL, false);