From: Arran Cudbard-Bell Date: Fri, 20 Nov 2020 02:02:30 +0000 (-0600) Subject: Remove validation check looking for DA in global namespace X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f2d2fc2b2f50927b65d369dab1eed7ae7cdc9902;p=thirdparty%2Ffreeradius-server.git Remove validation check looking for DA in global namespace --- diff --git a/src/lib/util/pair.c b/src/lib/util/pair.c index 14dc90171f2..82d2d737740 100644 --- a/src/lib/util/pair.c +++ b/src/lib/util/pair.c @@ -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, "")); - } + da = vp->da; if (da->type == FR_TYPE_COMBO_IP_ADDR) { da = fr_dict_attr_by_type(vp->da, vp->da->type);