]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
t_rules may be NULL. CID 1558812
authorAlan T. DeKok <aland@freeradius.org>
Mon, 22 Jan 2024 18:51:51 +0000 (13:51 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 22 Jan 2024 18:52:06 +0000 (13:52 -0500)
src/lib/server/tmpl_tokenize.c

index 7271fbf54f08fce994565c73a484ac1335f7aecc..c6092043e0ff84a4446bcbaa1aba198a20402fcd 100644 (file)
@@ -610,7 +610,7 @@ static fr_slen_t tmpl_request_ref_list_from_substr(TALLOC_CTX *ctx, tmpl_attr_er
                /*
                 *      If the caller is asking for a namespace, then walk back up the tmpl_rules_t to find a parent namespace.
                 */
-               if (namespace && t_rules->parent) {
+               if (namespace && t_rules && t_rules->parent) {
                        t_rules = t_rules->parent;
 
                        switch (ref) {