]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
quiet static analyzer
authorAlan T. DeKok <aland@freeradius.org>
Sat, 7 Oct 2023 21:58:11 +0000 (17:58 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 7 Oct 2023 21:58:11 +0000 (17:58 -0400)
src/lib/unlang/xlat_inst.c

index f00c4ec2bc7bf97a1f41b9ec37926dd8411f18bc..4f687ec3909461c8a8ebd180e04c431aaa21ce9c 100644 (file)
@@ -361,11 +361,11 @@ static int _xlat_instantiate_ephemeral_walker(xlat_exp_t *node, void *uctx)
 int xlat_finalize(xlat_exp_head_t *head, tmpl_rules_t const *t_rules)
 {
        if (!t_rules || !t_rules->xlat.runtime_el) {
-               fr_assert(!t_rules->at_runtime);
+               fr_assert(!t_rules || !t_rules->at_runtime);
                return xlat_bootstrap(head);
        }
 
-       fr_assert(t_rules->at_runtime);
+       fr_assert(t_rules && t_rules->at_runtime);
        return xlat_instantiate_ephemeral(head, t_rules->xlat.runtime_el);
 }