diff --git a/src/detect-engine.c b/src/detect-engine.c index efb480f59088..819fa04a39cd 100644 --- a/src/detect-engine.c +++ b/src/detect-engine.c @@ -1919,7 +1919,6 @@ static int DetectEngineInspectRulePayloadMatches( if (p->flags & PKT_DETECT_HAS_STREAMDATA) { pmatch = DetectEngineInspectStreamPayload(de_ctx, det_ctx, s, p->flow, p); if (pmatch) { - det_ctx->flags |= DETECT_ENGINE_THREAD_CTX_STREAM_CONTENT_MATCH; *alert_flags |= PACKET_ALERT_FLAG_STREAM_MATCH; } } diff --git a/src/detect.c b/src/detect.c index 440ede976736..5d6eb4df3e8a 100644 --- a/src/detect.c +++ b/src/detect.c @@ -825,8 +825,6 @@ static inline void DetectRulePacketRules( DetectVarProcessList(det_ctx, pflow, p); DetectReplaceFree(det_ctx); RULE_PROFILING_END(det_ctx, s, smatch, p); - - det_ctx->flags = 0; continue; } } @@ -1731,7 +1729,6 @@ static void DetectRunFrames(ThreadVars *tv, DetectEngineCtx *de_ctx, DetectEngin DetectRunPostMatch(tv, det_ctx, p, s); uint8_t alert_flags = (PACKET_ALERT_FLAG_STATE_MATCH | PACKET_ALERT_FLAG_FRAME); - det_ctx->flags |= DETECT_ENGINE_THREAD_CTX_FRAME_ID_SET; det_ctx->frame_id = frame->id; SCLogDebug( "%p/%" PRIi64 " sig %u (%u) matched", frame, frame->id, s->id, s->num); diff --git a/src/detect.h b/src/detect.h index 26cff6352e67..a4f154523280 100644 --- a/src/detect.h +++ b/src/detect.h @@ -310,9 +310,6 @@ typedef struct DetectPort_ { /* for now a uint8_t is enough */ #define SignatureMask uint8_t -#define DETECT_ENGINE_THREAD_CTX_FRAME_ID_SET 0x0001 -#define DETECT_ENGINE_THREAD_CTX_STREAM_CONTENT_MATCH 0x0004 - #define FILE_SIG_NEED_FILE 0x01 #define FILE_SIG_NEED_FILENAME 0x02 #define FILE_SIG_NEED_MAGIC 0x04 /**< need the start of the file */ @@ -1180,8 +1177,6 @@ typedef struct DetectEngineThreadCtx_ { uint32_t *to_clear_queue; } multi_inspect; - uint16_t flags; /**< DETECT_ENGINE_THREAD_CTX_* flags */ - /* true if tx_id is set */ bool tx_id_set; /** ID of the transaction currently being inspected. */