]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
use the correct variable
authorAlan T. DeKok <aland@freeradius.org>
Wed, 19 Jan 2022 20:41:36 +0000 (15:41 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 19 Jan 2022 20:41:36 +0000 (15:41 -0500)
src/lib/server/map.c

index 1f1a04c6c1c740fb874f72fdad9a378ce00031bc..ad435f5f219d7ee02474f820cb024b94625ace32 100644 (file)
@@ -363,12 +363,13 @@ ssize_t map_afrom_substr(TALLOC_CTX *ctx, map_t **out, map_t **parent_p, fr_sbuf
                } else {
                        memset(&our_lhs_attr_rules, 0, sizeof(our_lhs_attr_rules));
                }
+
                /*
                 *      Allow for ".foo" to refer to the current
                 *      parents list.  Allow for "..foo" to refer to
                 *      the grandparent list.
                 */
-               if (lhs_rules->attr.prefix == TMPL_ATTR_REF_PREFIX_NO) {
+               if (our_lhs_attr_rules.prefix == TMPL_ATTR_REF_PREFIX_NO) {
                        /*
                         *      One '.' means "the current parent".
                         */