]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Sigh, try to be compatible with old crappy shit
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 9 Oct 2019 16:44:12 +0000 (17:44 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 9 Oct 2019 16:44:12 +0000 (17:44 +0100)
src/libutil/regexp.c

index b7aae457e7f8c06d674527b009189f774c980365..766fca09311d8f3141ffbb4e8ea8735de234e096 100644 (file)
@@ -165,13 +165,13 @@ rspamd_regexp_post_process (rspamd_regexp_t *r)
        /* Create match context */
        r->mcontext = pcre2_match_context_create (NULL);
        g_assert (r->mcontext != NULL);
-       pcre2_set_depth_limit (r->mcontext, max_recursion_depth);
+       pcre2_set_recursion_limit (r->mcontext, max_recursion_depth);
        pcre2_set_match_limit (r->mcontext, max_backtrack);
 
        if (r->re != r->raw_re) {
                r->raw_mcontext = pcre2_match_context_create (NULL);
                g_assert (r->raw_mcontext != NULL);
-               pcre2_set_depth_limit (r->raw_mcontext, max_recursion_depth);
+               pcre2_set_recursion_limit (r->raw_mcontext, max_recursion_depth);
                pcre2_set_match_limit (r->raw_mcontext, max_backtrack);
        }
        else {