]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix JIT usage for PCRE2
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 23 Apr 2016 14:26:20 +0000 (15:26 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 23 Apr 2016 14:31:09 +0000 (15:31 +0100)
src/libutil/regexp.c

index df4751d8d04e57ef599f76bf1f4cbecc4095567b..1a097c5b3533fa307cd542751eb57631e4ee2c0b 100644 (file)
@@ -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);