aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/regexp.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-23 15:26:20 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-23 15:26:20 +0100
commit634e405403b35e1055efb4cf4f6b21e516f9e521 (patch)
tree86f0d4af0172e1c724ba02fa4b860dc5460a4fbc /src/libutil/regexp.c
parentfbe8abd10b1b0c8cb3956f8753e39353484b5336 (diff)
downloadrspamd-634e405403b35e1055efb4cf4f6b21e516f9e521.tar.gz
rspamd-634e405403b35e1055efb4cf4f6b21e516f9e521.zip
[Fix] Fix JIT usage for PCRE2
Diffstat (limited to 'src/libutil/regexp.c')
-rw-r--r--src/libutil/regexp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libutil/regexp.c b/src/libutil/regexp.c
index df4751d8d..1a097c5b3 100644
--- a/src/libutil/regexp.c
+++ b/src/libutil/regexp.c
@@ -202,7 +202,6 @@ rspamd_regexp_post_process (rspamd_regexp_t *r)
if (pcre2_pattern_info (r->raw_re, PCRE2_INFO_JITSIZE, &jsz) >= 0 && jsz > 0) {
r->raw_jstack = pcre2_jit_stack_create (32 * 1024, 512 * 1024, NULL);
- r->flags |= RSPAMD_REGEXP_FLAG_DISABLE_JIT;
}
else {
msg_debug ("jit compilation of raw %s is not supported", r->pattern);