]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
update comments
authorAlan T. DeKok <aland@freeradius.org>
Tue, 8 Jun 2021 17:09:48 +0000 (13:09 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 8 Jun 2021 17:09:48 +0000 (13:09 -0400)
src/lib/server/map.c

index 869145667706a14ca6c0f658219bf6cd43dac555..ece9bfdc6b087688b1c9967c6fc1e0099eb2128d 100644 (file)
@@ -488,6 +488,18 @@ ssize_t map_afrom_substr(TALLOC_CTX *ctx, map_t **out, map_t **parent_p, fr_sbuf
                        }
 
                        fr_sbuff_adv_past_whitespace(&our_in, SIZE_MAX, tt);
+
+                       /*
+                        *      Peek at the next character.  If it's
+                        *      '}', stop.  Otherwise, call ourselves
+                        *      recursively, with a special flag
+                        *      saying '.' is no longer necessary.
+                        *
+                        *      We could put the flag into
+                        *      tmpl_rules_t, but it's likely the
+                        *      wrong place, as tmpl_rules_t doesn't
+                        *      contain the parent map.
+                        */
                        if (!fr_sbuff_next_if_char(&our_in, '}')) {
                                fr_sbuff_set(&our_in, &m_rhs);
                                fr_strerror_const("No matching '}'");