]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
check for xlat / exec tmpls
authorAlan T. DeKok <aland@freeradius.org>
Mon, 23 May 2022 18:40:58 +0000 (14:40 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 24 May 2022 20:46:45 +0000 (16:46 -0400)
which should really be handled, but let's debug other code first.

src/lib/unlang/xlat_eval.c

index 0a2df92f0dbacd6bb5530c4b04ab0a7a54ab540e..d4abaa9920bcca91fe44c199d7b2f3435045e3f2 100644 (file)
@@ -1268,6 +1268,12 @@ xlat_action_t xlat_frame_eval(TALLOC_CTX *ctx, fr_dcursor_t *out, xlat_exp_head_
 
                                if (xlat_eval_pair_real(ctx, &result, request, node->vpt) == XLAT_ACTION_FAIL) goto fail;
 
+                       } else if (tmpl_is_xlat(node->vpt)) {
+                               fr_assert(0);
+
+                       } else if (tmpl_contains_xlat(node->vpt)) {
+                               fr_assert(0);
+
                        } else {
                                /*
                                 *      @todo - write code here!