From: Alan T. DeKok Date: Sun, 27 Aug 2023 19:48:38 +0000 (-0400) Subject: dict_def can be NULL for unit tests X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6864580b06c7b3a42a929d0d97449360ba29c0f6;p=thirdparty%2Ffreeradius-server.git dict_def can be NULL for unit tests --- diff --git a/src/lib/unlang/xlat_expr.c b/src/lib/unlang/xlat_expr.c index c57be6ffc54..c83492f2880 100644 --- a/src/lib/unlang/xlat_expr.c +++ b/src/lib/unlang/xlat_expr.c @@ -1907,7 +1907,6 @@ static fr_slen_t tokenize_unary(xlat_exp_head_t *head, xlat_exp_t **out, fr_sbuf MEM(unary = xlat_exp_alloc(head, XLAT_FUNC, fr_tokens[func->token], strlen(fr_tokens[func->token]))); unary->call.func = func; unary->call.dict = t_rules->attr.dict_def; - fr_assert(unary->call.dict != NULL); unary->flags = func->flags; if (tokenize_field(unary->call.args, &node, &our_in, p_rules, t_rules, bracket_rules, out_c, (c == '!')) < 0) { @@ -2676,7 +2675,6 @@ redo: MEM(node = xlat_exp_alloc(head, XLAT_FUNC, fr_tokens[op], strlen(fr_tokens[op]))); node->call.func = func; node->call.dict = t_rules->attr.dict_def; - fr_assert(node->call.dict != NULL); node->flags = func->flags; xlat_func_append_arg(node, lhs, logical_ops[op] && cond);