aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/regexp.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-09 17:44:12 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-09 17:44:12 +0100
commit1bf202d540865ebd8d4e5f0d21e067eff3102def (patch)
treea8b8407cf300198019f0ce01826257a681b528f3 /src/libutil/regexp.c
parent5f40cc6a64897da15bccefb746aea490ab55820c (diff)
downloadrspamd-1bf202d540865ebd8d4e5f0d21e067eff3102def.tar.gz
rspamd-1bf202d540865ebd8d4e5f0d21e067eff3102def.zip
[Minor] Sigh, try to be compatible with old crappy shit
Diffstat (limited to 'src/libutil/regexp.c')
-rw-r--r--src/libutil/regexp.c4
1 files changed, 2 insertions, 2 deletions
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 {