]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
mark up local dictionaries as local
authorAlan T. DeKok <aland@freeradius.org>
Sun, 24 Sep 2023 13:49:24 +0000 (09:49 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 24 Sep 2023 13:49:24 +0000 (09:49 -0400)
and try harder to avoid number overlaps

src/lib/util/dict_util.c

index e63a4418d88502f0023e74c451e80dc9dc0591f5..b9495db8234f27cce26286d92a524cb4d8bab7b2 100644 (file)
@@ -3444,7 +3444,8 @@ fr_dict_t *fr_dict_protocol_alloc(fr_dict_t const *parent)
        fr_dict_attr_t *da;
 
        fr_dict_attr_flags_t flags = {
-               .is_root = 1,
+               .is_root = true,
+               .local = true,
                .type_size = 2,
                .length = 2
        };
@@ -3470,6 +3471,8 @@ fr_dict_t *fr_dict_protocol_alloc(fr_dict_t const *parent)
                return NULL;
        }
 
+       da->last_child_attr = fr_dict_root(parent)->last_child_attr;
+
        dict->root = da;
        dict->root->dict = dict;
        dict->next = parent;