]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
look up reference using found dictionary, not default one
authorAlan T. DeKok <aland@freeradius.org>
Thu, 12 Aug 2021 14:32:49 +0000 (10:32 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 12 Aug 2021 14:34:30 +0000 (10:34 -0400)
src/lib/util/dict_fixup.c

index 777c487fa6523975b5d9fbe84131b46b4c9b2447..485950c41adbf00802365334c3e3ba7c8a807cdf 100644 (file)
@@ -294,7 +294,7 @@ static fr_dict_attr_t const *dict_find_or_load_reference(fr_dict_t **dict_def, c
        /*
         *      Look up the attribute.
         */
-       da = fr_dict_attr_by_oid(NULL, fr_dict_root(*dict_def), ref + slen + 1);
+       da = fr_dict_attr_by_oid(NULL, fr_dict_root(dict), ref + slen + 1);
        if (!da) {
                fr_strerror_printf("No such attribute '%s' in reference at %s[%d]",
                                   ref + slen + 1, fr_cwd_strip(filename), line);