From 1bf202d540865ebd8d4e5f0d21e067eff3102def Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 9 Oct 2019 17:44:12 +0100 Subject: [Minor] Sigh, try to be compatible with old crappy shit --- src/libutil/regexp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libutil/regexp.c') diff --git a/src/libutil/regexp.c b/src/libutil/regexp.c index b7aae457e..766fca093 100644 --- a/src/libutil/regexp.c +++ b/src/libutil/regexp.c @@ -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 { -- cgit v1.2.3