From: Alan T. DeKok Date: Mon, 22 Jan 2024 18:51:51 +0000 (-0500) Subject: t_rules may be NULL. CID 1558812 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8389510c5822d74a98dc6fd12d44913ebe5dca0;p=thirdparty%2Ffreeradius-server.git t_rules may be NULL. CID 1558812 --- diff --git a/src/lib/server/tmpl_tokenize.c b/src/lib/server/tmpl_tokenize.c index 7271fbf54f0..c6092043e0f 100644 --- a/src/lib/server/tmpl_tokenize.c +++ b/src/lib/server/tmpl_tokenize.c @@ -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) {