]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
check for key fields, not for bit fields
authorAlan T. DeKok <aland@freeradius.org>
Thu, 10 Mar 2022 22:50:25 +0000 (17:50 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 10 Mar 2022 22:50:25 +0000 (17:50 -0500)
src/lib/util/dict_validate.c

index c86095122099a2358e004d7b26e6d029db8c23d3..742be8165e3cce4ef2152731c3cd59223f1b7597 100644 (file)
@@ -523,7 +523,7 @@ bool dict_attr_flags_valid(fr_dict_t *dict, fr_dict_attr_t const *parent,
                         *      key fields.  Yes, this is O(N^2), but
                         *      the structs are small.
                         */
-                       if (flags->extra) {
+                       if (flags->extra && (flags->subtype == FLAG_KEY_FIELD)) {
                                for (i = 1; i < *attr; i++) {
                                        sibling = fr_dict_attr_child_by_num(parent, i);
                                        if (!sibling) {