]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Not finding a capture group should not be fail, it's just a NULL result
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 18 May 2025 00:06:17 +0000 (18:06 -0600)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 18 Jun 2025 12:52:58 +0000 (13:52 +0100)
src/lib/unlang/xlat_builtin.c

index d15ecdbfb5fc8547419c727ffcbe2cb3866e1d89..8ee093a51660228a15d7277824326d5d1e1dd321 100644 (file)
@@ -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);