From: Alan T. DeKok Date: Wed, 8 Jun 2022 15:23:09 +0000 (-0400) Subject: pass in flags, too X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a51801c32e8ee57307e2ea1a7d296927a0c886e;p=thirdparty%2Ffreeradius-server.git pass in flags, too --- diff --git a/src/lib/unlang/xlat_expr.c b/src/lib/unlang/xlat_expr.c index 18f17e7d6c9..2719e2c5aee 100644 --- a/src/lib/unlang/xlat_expr.c +++ b/src/lib/unlang/xlat_expr.c @@ -543,7 +543,7 @@ static xlat_action_t xlat_regex_resume(TALLOC_CTX *ctx, fr_dcursor_t *out, fr_assert(rhs != NULL); slen = regex_compile(rctx, &preg, rhs->vb_strvalue, rhs->vb_length, - NULL, true, true); /* no flags, allow subcaptures, at runtime */ + tmpl_regex_flags(inst->xlat->vpt), true, true); /* flags, allow subcaptures, at runtime */ if (slen <= 0) return XLAT_ACTION_FAIL; return xlat_regex_match(ctx, request, lhs, &preg, out, inst->op);