When converting to vectored mode we need to remember results between
consequent calls of regexp match engine. Prior to this patch this
behaviour was broken and caused regexp rules to be matched incorrectly.
gdouble t1, t2;
const gdouble slow_time = 0.1;
+ if (in == NULL) {
+ return rt->results[id];
+ }
+
if (len == 0) {
len = strlen (in);
}
in[i],
lens[i],
is_raw);
+ rt->results[re_id] = ret;
}
+
setbit (rt->checked, re_id);
- rt->results[re_id] = ret;
#else
struct rspamd_re_cache_elt *elt;
struct rspamd_re_class *re_class;
in[i],
lens[i],
is_raw);
+ rt->results[re_id] = ret;
}
setbit (rt->checked, re_id);
- rt->results[re_id] = ret;
}
else {
for (i = 0; i < count; i ++) {