From: Alan T. DeKok Date: Thu, 19 May 2022 23:27:25 +0000 (-0400) Subject: let's assert at the right point. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09672c51fe0e3d9cc1802c318a37e1bf4a6d6756;p=thirdparty%2Ffreeradius-server.git let's assert at the right point. --- diff --git a/src/lib/unlang/xlat_eval.c b/src/lib/unlang/xlat_eval.c index 4ac3d2271a8..a063adc703b 100644 --- a/src/lib/unlang/xlat_eval.c +++ b/src/lib/unlang/xlat_eval.c @@ -1260,12 +1260,17 @@ xlat_action_t xlat_frame_eval(TALLOC_CTX *ctx, fr_dcursor_t *out, xlat_exp_head_ fr_value_box_copy(value, value, tmpl_value(node->vpt)); /* Also dups taint */ fr_dlist_insert_tail(&result, value); - } else { + } else if (tmpl_is_attr(node->vpt)) { XLAT_DEBUG("** [%i] %s(attribute) - %%{%s}", unlang_interpret_stack_depth(request), __FUNCTION__, node->fmt); xlat_debug_log_expansion(request, node, NULL); if (xlat_eval_pair_real(ctx, &result, request, node->vpt) == XLAT_ACTION_FAIL) goto fail; + } else { + /* + * @todo - write code here! + */ + fr_assert(0); } xlat_debug_log_list_result(request, &result);