commit 1bf202d: [Minor] Sigh, try to be compatible with old crappy shit
Vsevolod Stakhov
vsevolod at highsecure.ru
Wed Oct 9 16:49:05 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-10-09 17:44:12 +0100
URL: https://github.com/rspamd/rspamd/commit/1bf202d540865ebd8d4e5f0d21e067eff3102def (HEAD -> master)
[Minor] Sigh, try to be compatible with old crappy shit
---
src/libutil/regexp.c | 4 ++--
1 file 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 {
More information about the Commits
mailing list