From 5a316a172765ec155673e1d3a0e5c721535db34d Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Tue, 3 Oct 2023 16:14:54 -0400 Subject: [PATCH] switch over the correct type --- src/lib/unlang/xlat_expr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/unlang/xlat_expr.c b/src/lib/unlang/xlat_expr.c index 5d02e85005..0dc1e1c0bb 100644 --- a/src/lib/unlang/xlat_expr.c +++ b/src/lib/unlang/xlat_expr.c @@ -407,7 +407,7 @@ static xlat_action_t xlat_binary_op(TALLOC_CTX *ctx, fr_dcursor_t *out, a = &one; - switch (a->type) { + switch (b->type) { case FR_TYPE_STRING: fr_value_box_strdup_shallow(a, NULL, "", false); break; @@ -430,7 +430,7 @@ static xlat_action_t xlat_binary_op(TALLOC_CTX *ctx, fr_dcursor_t *out, b = &two; - switch (b->type) { + switch (a->type) { case FR_TYPE_STRING: fr_value_box_strdup_shallow(b, NULL, "", false); break; -- 2.47.2