From: Alan T. DeKok Date: Sat, 27 Nov 2021 14:06:47 +0000 (-0500) Subject: cast RHS, as the types might be different X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4b517972c236f0fceca86ba2879c074ba5cb7ff;p=thirdparty%2Ffreeradius-server.git cast RHS, as the types might be different --- diff --git a/src/lib/util/calc.c b/src/lib/util/calc.c index e8fa1ba9e08..f97780e0758 100644 --- a/src/lib/util/calc.c +++ b/src/lib/util/calc.c @@ -1294,7 +1294,7 @@ int fr_value_calc_assignment_op(TALLOC_CTX *ctx, fr_value_box_t *dst, fr_token_t case T_OP_EQ: case T_OP_SET: fr_value_box_clear_value(dst); - fr_value_box_copy(ctx, dst, src); + fr_value_box_cast(ctx, dst, dst->type, dst->enumv, src); /* cast, as the RHS might not (yet) be the same! */ rcode = 0; break;