From: Vsevolod Stakhov Date: Wed, 9 Oct 2019 16:44:12 +0000 (+0100) Subject: [Minor] Sigh, try to be compatible with old crappy shit X-Git-Tag: 2.0~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bf202d540865ebd8d4e5f0d21e067eff3102def;p=thirdparty%2Frspamd.git [Minor] Sigh, try to be compatible with old crappy shit --- diff --git a/src/libutil/regexp.c b/src/libutil/regexp.c index b7aae457e7..766fca0931 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 {