]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Remove validation check looking for DA in global namespace
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 20 Nov 2020 02:02:30 +0000 (20:02 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 26 Nov 2020 17:18:33 +0000 (10:18 -0700)
src/lib/util/pair.c

index 14dc90171f2229dde39af0a271ae083b6ab10ede..82d2d737740c16d00b74ea53561ecfcdc597f031 100644 (file)
@@ -2242,16 +2242,7 @@ void fr_pair_verify(char const *file, int line, fr_pair_t const *vp)
        } else {
                fr_dict_attr_t const *da;
 
-               /*
-                *      Attribute may be present with multiple names
-                */
-               da = fr_dict_attr_by_name(NULL, fr_dict_root(fr_dict_by_da(vp->da)), vp->da->name);
-               if (!da) {
-                       fr_fatal_assert_fail("CONSISTENCY CHECK FAILED %s[%u]: fr_pair_t attribute %p \"%s\" (%s) "
-                                            "not found in global dictionary",
-                                            file, line, vp->da, vp->da->name,
-                                            fr_table_str_by_value(fr_value_box_type_table, vp->vp_type, "<INVALID>"));
-               }
+               da = vp->da;
 
                if (da->type == FR_TYPE_COMBO_IP_ADDR) {
                        da = fr_dict_attr_by_type(vp->da, vp->da->type);