Skip to content

Commit

Permalink
xlat cmp requires both arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
ndptech committed Oct 6, 2023
1 parent 409c9c2 commit 7df1598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/unlang/xlat_expr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7df1598

Please sign in to comment.