From: Alan T. DeKok Date: Thu, 12 Aug 2021 14:32:49 +0000 (-0400) Subject: look up reference using found dictionary, not default one X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b4644a49ea092019230259a52c981c2fc403b59;p=thirdparty%2Ffreeradius-server.git look up reference using found dictionary, not default one --- diff --git a/src/lib/util/dict_fixup.c b/src/lib/util/dict_fixup.c index 777c487fa65..485950c41ad 100644 --- a/src/lib/util/dict_fixup.c +++ b/src/lib/util/dict_fixup.c @@ -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);