]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
dict_def may be NULL. CID #1646935
authorAlan T. DeKok <aland@freeradius.org>
Sun, 25 May 2025 12:31:58 +0000 (08:31 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 26 May 2025 19:25:26 +0000 (15:25 -0400)
src/lib/server/tmpl_tokenize.c

index 4a29349bffd62d75ff5495c9da8ff5987e45831d..59c88e03bcdcdbc7a820297b3fd06234d0798a63 100644 (file)
@@ -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)) {