]> source.dussan.org Git - rspamd.git/commitdiff
Fix flags in pcre jit fast path.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 10 Mar 2015 11:51:54 +0000 (11:51 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 10 Mar 2015 11:51:54 +0000 (11:51 +0000)
src/libutil/regexp.c

index 9151066f79558c53228222779fc64b3b2be2c9e2..b8bd4454cb72fc4e9a51657783aefd4cc9555aa9 100644 (file)
@@ -346,7 +346,8 @@ rspamd_regexp_search (rspamd_regexp_t *re, const gchar *text, gsize len,
        if (!(re->flags & RSPAMD_REGEXP_FLAG_NOOPT)) {
 #ifdef HAVE_PCRE_JIT
 # if (PCRE_MAJOR == 8 && PCRE_MINOR >= 32)
-               rc = pcre_jit_exec (r, ext, mt, remain, 0, match_flags, ovec,
+               /* XXX: flags seems to be broken with jit fast path */
+               rc = pcre_jit_exec (r, ext, mt, remain, 0, 0, ovec,
                                G_N_ELEMENTS (ovec), st);
 # else
                rc = pcre_exec (r, ext, mt, remain, 0, match_flags, ovec,