]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
set parent and depth when we create the attribute.
authorAlan T. DeKok <aland@freeradius.org>
Fri, 20 Jan 2017 17:44:35 +0000 (12:44 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 20 Jan 2017 18:18:52 +0000 (13:18 -0500)
src/lib/dict.c

index 3163e0d9197a7a8ae377cd0f96ee290cf47959a2..ba86581816f0a5eba287e71ece8a357e3ec80727 100644 (file)
@@ -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;
 }