]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
support "&=" and "|="
authorAlan T. DeKok <aland@freeradius.org>
Sun, 5 Dec 2021 20:33:22 +0000 (15:33 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 7 Dec 2021 13:32:21 +0000 (08:32 -0500)
src/lib/util/calc.c

index 9e37b88096d30ff04747f7b04d6ab4918d6a595d..6de3dbf1c0daef3d538b13629ec4f92f8aa763a4 100644 (file)
@@ -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;