From: Alan T. DeKok Date: Wed, 19 Jan 2022 20:41:36 +0000 (-0500) Subject: use the correct variable X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eace5fc42e5c945e5683a148b866f97fa86bcf44;p=thirdparty%2Ffreeradius-server.git use the correct variable --- diff --git a/src/lib/server/map.c b/src/lib/server/map.c index 1f1a04c6c1..ad435f5f21 100644 --- a/src/lib/server/map.c +++ b/src/lib/server/map.c @@ -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". */