From: Alan T. DeKok Date: Sun, 24 Sep 2023 13:49:24 +0000 (-0400) Subject: mark up local dictionaries as local X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8127a4e068ee068dfa8c5763479a6ff71ed42cd8;p=thirdparty%2Ffreeradius-server.git mark up local dictionaries as local and try harder to avoid number overlaps --- diff --git a/src/lib/util/dict_util.c b/src/lib/util/dict_util.c index e63a4418d88..b9495db8234 100644 --- a/src/lib/util/dict_util.c +++ b/src/lib/util/dict_util.c @@ -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;