From: Alan T. DeKok Date: Sun, 25 May 2025 12:31:58 +0000 (-0400) Subject: dict_def may be NULL. CID #1646935 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06dfe5bf839ea419aee7e3c660f83728f9fcfbb7;p=thirdparty%2Ffreeradius-server.git dict_def may be NULL. CID #1646935 --- diff --git a/src/lib/server/tmpl_tokenize.c b/src/lib/server/tmpl_tokenize.c index 4a29349bffd..59c88e03bcd 100644 --- a/src/lib/server/tmpl_tokenize.c +++ b/src/lib/server/tmpl_tokenize.c @@ -1422,7 +1422,7 @@ static fr_slen_t tmpl_attr_parse_filter(tmpl_attr_error_t *err, tmpl_attr_t *ar, * reference to the current cursor, and we need to decide what that syntax is. */ if (ar->type == TMPL_ATTR_TYPE_UNSPEC) { - t_rules.attr.namespace = fr_dict_root(at_rules->dict_def); + if (at_rules->dict_def) t_rules.attr.namespace = fr_dict_root(at_rules->dict_def); } else { if (!ar->ar_da || !fr_type_is_structural(ar->ar_da->type)) {