]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Revert "don't re-define known attributes"
authorAlan T. DeKok <aland@freeradius.org>
Thu, 19 Jan 2017 23:15:39 +0000 (18:15 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 19 Jan 2017 23:15:39 +0000 (18:15 -0500)
This reverts commit ace93f82666940f95a2e04436e8e29f3440d2c73.

nope...

src/lib/dict.c

index f55d6626b5764df067853b03d9812275ef7b2c4e..1be204bad60c33ee4e90b00594bd5862a5bdf3c5 100644 (file)
@@ -2787,12 +2787,6 @@ fr_dict_attr_t const *fr_dict_unknown_add(fr_dict_t *dict, fr_dict_attr_t const
         */
        if (old->type == PW_TYPE_VENDOR) if (fr_dict_vendor_add(dict, old->name, old->attr) < 0) return NULL;
 
-       /*
-        *      Look up the attribute.  If it's already defined, don't re-define it.
-        */
-       da = fr_dict_attr_child_by_num(parent, old->attr);
-       if (da) return old;
-
        if (fr_dict_attr_add(dict, old->parent, old->name, old->attr, old->type, flags) < 0) return NULL;
 
        da = fr_dict_attr_child_by_num(parent, old->attr);