aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/regexp.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-10 11:51:54 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-10 11:51:54 +0000
commit6a1fd9b26c100028dff7ddfa8fad85716a363472 (patch)
tree14a009f30a27e64046b8b69cd7e74488185f5734 /src/libutil/regexp.c
parent7bbf934bd25b81aee2d87679cb48d4fae5202706 (diff)
downloadrspamd-6a1fd9b26c100028dff7ddfa8fad85716a363472.tar.gz
rspamd-6a1fd9b26c100028dff7ddfa8fad85716a363472.zip
Fix flags in pcre jit fast path.
Diffstat (limited to 'src/libutil/regexp.c')
-rw-r--r--src/libutil/regexp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libutil/regexp.c b/src/libutil/regexp.c
index 9151066f7..b8bd4454c 100644
--- a/src/libutil/regexp.c
+++ b/src/libutil/regexp.c
@@ -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,