]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
switch over the correct type
authorAlan T. DeKok <aland@freeradius.org>
Tue, 3 Oct 2023 20:14:54 +0000 (16:14 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 3 Oct 2023 20:14:54 +0000 (16:14 -0400)
src/lib/unlang/xlat_expr.c

index 5d02e850055c64a49dd242562c5dc645983a0a4f..0dc1e1c0bb39421c3618c5e471888f42e54ab59d 100644 (file)
@@ -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;