From 7df15988475d6098aec7c7e14d454ad6a1f7c811 Mon Sep 17 00:00:00 2001 From: Nick Porter Date: Fri, 6 Oct 2023 09:22:53 +0100 Subject: [PATCH] xlat cmp requires both arguments --- src/lib/unlang/xlat_expr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/unlang/xlat_expr.c b/src/lib/unlang/xlat_expr.c index 32c5bc0acf5e..7a2b6482540b 100644 --- a/src/lib/unlang/xlat_expr.c +++ b/src/lib/unlang/xlat_expr.c @@ -479,7 +479,7 @@ static xlat_action_t xlat_cmp_op(TALLOC_CTX *ctx, fr_dcursor_t *out, a = fr_value_box_list_head(in); b = fr_value_box_list_next(in, a); - if (!a && !b) return XLAT_ACTION_FAIL; + if (!a || !b) return XLAT_ACTION_FAIL; fr_assert(a->type == FR_TYPE_GROUP); fr_assert(b->type == FR_TYPE_GROUP);