Browse Source

[Fix] Try to handle hyperscan error

tags/1.2.4
Vsevolod Stakhov 8 years ago
parent
commit
a5a312b65b
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/libutil/multipattern.c

+ 5
- 0
src/libutil/multipattern.c View File

@@ -502,6 +502,11 @@ rspamd_multipattern_hs_cb (unsigned int id,
gint ret = 0;

if (to > 0) {

if (from == HS_OFFSET_PAST_HORIZON) {
from = 0;
}

ret = cbd->cb (cbd->mp, id, from, to - 1, cbd->in, cbd->len, cbd->ud);

cbd->nfound ++;

Loading…
Cancel
Save