From: Arran Cudbard-Bell Date: Sun, 18 May 2025 00:06:17 +0000 (-0600) Subject: Not finding a capture group should not be fail, it's just a NULL result X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae5e59031d8d540758475efd7063b8edea03ee8f;p=thirdparty%2Ffreeradius-server.git Not finding a capture group should not be fail, it's just a NULL result --- diff --git a/src/lib/unlang/xlat_builtin.c b/src/lib/unlang/xlat_builtin.c index d15ecdbfb5f..8ee093a5166 100644 --- a/src/lib/unlang/xlat_builtin.c +++ b/src/lib/unlang/xlat_builtin.c @@ -2790,7 +2790,7 @@ static xlat_action_t xlat_func_regex(TALLOC_CTX *ctx, fr_dcursor_t *out, if (regex_request_to_sub(vb, vb, request, idx.vb_uint32) < 0) { REDEBUG2("No previous numbered regex capture group '%u'", idx.vb_uint32); talloc_free(vb); - return XLAT_ACTION_FAIL; + return XLAT_ACTION_DONE; } fr_dcursor_append(out, vb);