]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
sheng: fix reportCurrent eod flag
authorJustin Viiret <justin.viiret@intel.com>
Thu, 18 Jan 2018 04:53:13 +0000 (15:53 +1100)
committerChang, Harry <harry.chang@intel.com>
Wed, 27 Jun 2018 05:39:24 +0000 (13:39 +0800)
eod here should be 0, not 1. The reportCurrent NFA API function for
Sheng is unused at the moment, so this wasn't causing any problems
earlier.

src/nfa/sheng.c

index 837aa7dfaa7605dc9e1579781659bfde6209e8bc..4f30910b5f865bc3818622133418cf6c0d5a94e2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016, Intel Corporation
+ * Copyright (c) 2016-2018, Intel Corporation
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
@@ -628,7 +628,7 @@ char nfaExecSheng_reportCurrent(const struct NFA *n, struct mq *q) {
             fireSingleReport(cb, ctxt, sh->report, offset);
         } else {
             fireReports(sh, cb, ctxt, s, offset, &cached_state_id,
-                        &cached_report_id, 1);
+                        &cached_report_id, 0);
         }
     }