]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/state: fix offset mask logic
authorqiangbei <1137465774@qq.com>
Sun, 8 Oct 2017 12:49:05 +0000 (20:49 +0800)
committerVictor Julien <victor@inliniac.net>
Tue, 17 Oct 2017 07:38:46 +0000 (09:38 +0200)
changed 0xef to 0x7f

src/detect-engine-state.c

index 8506f2a1ec9cb27edaf313d5933b0d14bcfb3650..b9a79e9347188997cfd73eed01bfd90e8e6634c5 100644 (file)
@@ -375,7 +375,7 @@ int DeStateDetectStartDetection(ThreadVars *tv, DetectEngineCtx *de_ctx,
 
     /* if continue detection already inspected this rule for this tx,
      * continue with the first not-inspected tx */
-    uint8_t offset = det_ctx->de_state_sig_array[s->num] & 0xef;
+    uint8_t offset = det_ctx->de_state_sig_array[s->num] & 0x7f;
     uint64_t tx_id = AppLayerParserGetTransactionInspectId(f->alparser, flags);
     if (offset > 0) {
         SCLogDebug("using stored_tx_id %"PRIu64" instead of %"PRIu64, tx_id+offset, tx_id);