]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use fr_dict_attr_by_qualified name in pairmake
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 31 Oct 2018 02:31:36 +0000 (22:31 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 10 Dec 2018 16:20:36 +0000 (11:20 -0500)
This supports fallback, as well as allowing protocols to be explicitly specified

src/lib/util/pair.c

index 7aa47c85e9ddb0a4e4508bfacbe8c277b75a1d41..b62d21966800950e7524cfd1acef8c9426ea7d36 100644 (file)
@@ -545,8 +545,7 @@ VALUE_PAIR *fr_pair_make(TALLOC_CTX *ctx, fr_dict_t const *dict, VALUE_PAIR **vp
         *      It's not found in the dictionary, so we use
         *      another method to create the attribute.
         */
-       da = fr_dict_attr_by_name(dict, attrname);
-       if (!da) {
+       if (fr_dict_attr_by_qualified_name(&da, dict, attrname, true) < 0) {
                if (tag != TAG_NONE) {
                        fr_strerror_printf("Invalid tag for attribute %s", attribute);
                        return NULL;