From: Alan T. DeKok Date: Sun, 5 Dec 2021 20:33:22 +0000 (-0500) Subject: support "&=" and "|=" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8430d8e7a05a529bcdc8bad1371848a2f7cac66f;p=thirdparty%2Ffreeradius-server.git support "&=" and "|=" --- diff --git a/src/lib/util/calc.c b/src/lib/util/calc.c index 9e37b88096..6de3dbf1c0 100644 --- a/src/lib/util/calc.c +++ b/src/lib/util/calc.c @@ -1322,6 +1322,14 @@ int fr_value_calc_assignment_op(TALLOC_CTX *ctx, fr_value_box_t *dst, fr_token_t rcode = fr_value_calc_binary_op(ctx, dst, dst->type, dst, op, src); break; + case T_OP_AND_EQ: + rcode = fr_value_calc_binary_op(ctx, dst, dst->type, dst, T_OR, src); + break; + + case T_OP_OR_EQ: + rcode = fr_value_calc_binary_op(ctx, dst, dst->type, dst, T_AND, src); + break; + default: invalid: rcode = ERR_INVALID;