From: Alan T. DeKok Date: Fri, 20 Jan 2017 17:44:35 +0000 (-0500) Subject: set parent and depth when we create the attribute. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ae8041e67c1548e2f2d477e786a7a8685434cb8;p=thirdparty%2Ffreeradius-server.git set parent and depth when we create the attribute. --- diff --git a/src/lib/dict.c b/src/lib/dict.c index 3163e0d9197..ba86581816f 100644 --- a/src/lib/dict.c +++ b/src/lib/dict.c @@ -1341,6 +1341,9 @@ static fr_dict_attr_t *fr_dict_attr_add_by_name(fr_dict_t *dict, fr_dict_attr_t } } + n->parent = parent; + n->depth = parent->depth + 1; + return n; }