]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
chimera: fix SKIP flag issue
authorHong, Yang A <yang.a.hong@intel.com>
Thu, 28 Jul 2022 04:59:34 +0000 (04:59 +0000)
committerKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Mon, 29 Aug 2022 12:03:34 +0000 (15:03 +0300)
fix github issue #360

chimera/ch_runtime.c

index fdb5b992b42a025eeade80163c2bef8a2b8911ab..1009036b56aacd669c7621df2dcb27e65b10ecd9 100644 (file)
@@ -326,6 +326,10 @@ ch_error_t catchupPcre(struct HybridContext *hyctx, unsigned int id,
         } else if (cbrv == CH_CALLBACK_SKIP_PATTERN) {
             DEBUG_PRINTF("user callback told us to skip this pattern\n");
             pd->scanStart = hyctx->length;
+            if (top_id == id) {
+                break;
+            }
+            continue;
         }
 
         if (top_id == id) {