]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add note on how to handle ALIAS
authorAlan T. DeKok <aland@freeradius.org>
Fri, 26 Jan 2024 16:34:41 +0000 (11:34 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 26 Jan 2024 16:35:48 +0000 (11:35 -0500)
which "jumps ahead" in the tree

src/lib/util/pair_legacy.c

index 975df397227f5c25a964b7c61bfe3e36224c592c..371ecf8c213925e19f521b1cf6d684dff58df45c 100644 (file)
@@ -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.