]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
try to quiet coverity
authorAlan T. DeKok <aland@freeradius.org>
Thu, 20 Mar 2025 02:34:24 +0000 (09:34 +0700)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 20 Mar 2025 02:34:24 +0000 (09:34 +0700)
src/lib/unlang/xlat_expr.c

index ac63a487c912f3e86996c5c5756a5b88703fb127..505452092045d240118cd2c9c066472305febac3 100644 (file)
@@ -476,6 +476,8 @@ static fr_slen_t xlat_expr_print_regex(fr_sbuff_t *out, xlat_exp_t const *node,
         */
        if (!inst->xlat) {
                child = xlat_exp_next(node->call.args, child);
+
+               fr_assert(child != NULL);
                fr_assert(!xlat_exp_next(node->call.args, child));
                fr_assert(child->type == XLAT_GROUP);