From: Nick Porter Date: Mon, 17 Nov 2025 13:44:32 +0000 (+0000) Subject: Use correct namespace when resolving children of FR_TYPE_GROUP X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec30540739b263199f25862da0caa518b57ba3f7;p=thirdparty%2Ffreeradius-server.git Use correct namespace when resolving children of FR_TYPE_GROUP --- diff --git a/src/lib/server/tmpl_tokenize.c b/src/lib/server/tmpl_tokenize.c index 0d5dede74f1..6eb4e038c88 100644 --- a/src/lib/server/tmpl_tokenize.c +++ b/src/lib/server/tmpl_tokenize.c @@ -547,7 +547,10 @@ static fr_slen_t tmpl_request_ref_list_from_substr(TALLOC_CTX *ctx, tmpl_attr_er */ if (namespace) { if (at_rules->namespace) { - *namespace = at_rules->namespace; + /* + * If the namespace is FR_TYPE_GROUP use the correct namespace + */ + *namespace = at_rules->namespace->type == FR_TYPE_GROUP ? fr_dict_attr_ref(at_rules->namespace) : at_rules->namespace; } else { *namespace = NULL; }