From: Alan T. DeKok Date: Fri, 26 Jan 2024 16:34:41 +0000 (-0500) Subject: add note on how to handle ALIAS X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b232162f109d361ef776c0d544edeed09c53eb2c;p=thirdparty%2Ffreeradius-server.git add note on how to handle ALIAS which "jumps ahead" in the tree --- diff --git a/src/lib/util/pair_legacy.c b/src/lib/util/pair_legacy.c index 975df397227..371ecf8c213 100644 --- a/src/lib/util/pair_legacy.c +++ b/src/lib/util/pair_legacy.c @@ -330,6 +330,18 @@ redo: } fr_assert(da != NULL); +#if 0 + /* + * @todo - If we're at the root, then aliases can cause us to jump over intermediate + * attributes. In which case we have to create the intermediate attributes, too. + */ + if (relative->da) { + if (relative->da->flags.is_root) { + fr_assert(da->depth == 1); + } + } +#endif + /* * Intermediate components are always found / created. The final component is * always appended, no matter the operator.