From ce0fb39219db82cef286c997a1163dcca10185ef Mon Sep 17 00:00:00 2001 From: qiangbei <1137465774@qq.com> Date: Sun, 8 Oct 2017 20:49:05 +0800 Subject: [PATCH] detect/state: fix offset mask logic changed 0xef to 0x7f --- src/detect-engine-state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detect-engine-state.c b/src/detect-engine-state.c index 8506f2a1ec..b9a79e9347 100644 --- a/src/detect-engine-state.c +++ b/src/detect-engine-state.c @@ -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); -- 2.47.2