From: Alan T. DeKok Date: Fri, 9 Apr 2021 15:31:31 +0000 (-0400) Subject: call internal function instead of public one X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d9cf460a41f5ad8753cb55bb480c5e6808c8e47;p=thirdparty%2Ffreeradius-server.git call internal function instead of public one in preparation for adding support for relative attributes --- diff --git a/src/lib/util/pair_legacy.c b/src/lib/util/pair_legacy.c index 6e5ae4e055c..a16414419e8 100644 --- a/src/lib/util/pair_legacy.c +++ b/src/lib/util/pair_legacy.c @@ -613,10 +613,18 @@ int fr_pair_list_afrom_file(TALLOC_CTX *ctx, fr_dict_t const *dict, fr_pair_list * If we get nothing but an EOL, it's likely OK. */ fr_pair_list_init(&tmp_list); - last_token = fr_pair_list_afrom_str(ctx, dict, buf, &tmp_list); + + /* + * Call our internal function, instead of the public wrapper. + */ + if (fr_pair_list_afrom_substr(ctx, fr_dict_root(dict), buf, &tmp_list, &last_token, 0) < 0) { + goto fail; + } + if (fr_dlist_empty(&tmp_list.head)) { if (last_token == T_EOL) break; + fail: /* * Didn't read anything, but the previous * line wasn't EOL. The input file has a