From: Alan T. DeKok Date: Sat, 20 Nov 2021 16:18:55 +0000 (-0500) Subject: we only need to clear values, not the whole thing X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86ffe7086bd91bab2f3f0c1f3580986f34a29a60;p=thirdparty%2Ffreeradius-server.git we only need to clear values, not the whole thing --- diff --git a/src/lib/util/calc.c b/src/lib/util/calc.c index a9a0806313b..a36d9836b44 100644 --- a/src/lib/util/calc.c +++ b/src/lib/util/calc.c @@ -1167,8 +1167,8 @@ int fr_value_calc_binary_op(TALLOC_CTX *ctx, fr_value_box_t *dst, fr_type_t hint done: if (rcode == 0) dst->tainted = a->tainted | b->tainted; - fr_value_box_clear(&one); - fr_value_box_clear(&two); + fr_value_box_clear_value(&one); + fr_value_box_clear_value(&two); return rcode; } @@ -1195,7 +1195,7 @@ int fr_value_calc_assignment_op(TALLOC_CTX *ctx, fr_value_box_t *dst, fr_token_t switch (op) { case T_OP_EQ: case T_OP_SET: - fr_value_box_clear(dst); + fr_value_box_clear_value(dst); fr_value_box_copy(ctx, dst, src); rcode = 0; break;