From: Arran Cudbard-Bell Date: Wed, 31 Oct 2018 02:31:36 +0000 (-0400) Subject: Use fr_dict_attr_by_qualified name in pairmake X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=000508d3341b5cb0e01e27d09abde2cdc901ae32;p=thirdparty%2Ffreeradius-server.git Use fr_dict_attr_by_qualified name in pairmake This supports fallback, as well as allowing protocols to be explicitly specified --- diff --git a/src/lib/util/pair.c b/src/lib/util/pair.c index 7aa47c85e9d..b62d2196680 100644 --- a/src/lib/util/pair.c +++ b/src/lib/util/pair.c @@ -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;