From 2a5b9eb5fa61dfc83547c53e63c8e6b9da36e70e Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 17 Feb 2017 16:00:42 +0100 Subject: [PATCH] stream: remove unused variable --- src/detect.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/detect.c b/src/detect.c index b48bad4ab2..657f831aed 100644 --- a/src/detect.c +++ b/src/detect.c @@ -1365,9 +1365,8 @@ int SigMatchSignatures(ThreadVars *th_v, DetectEngineCtx *de_ctx, DetectEngineTh if (sflags & SIG_FLAG_REQUIRE_STREAM) { char pmatch = 0; if (det_ctx->smsg != NULL) { - uint8_t pmq_idx = 0; StreamMsg *smsg_inspect = det_ctx->smsg; - for ( ; smsg_inspect != NULL; smsg_inspect = smsg_inspect->next, pmq_idx++) { + for ( ; smsg_inspect != NULL; smsg_inspect = smsg_inspect->next) { if (DetectEngineInspectStreamPayload(de_ctx, det_ctx, s, pflow, smsg_inspect->data, smsg_inspect->data_len) == 1) { SCLogDebug("match in smsg %p", smsg_inspect); pmatch = 1; -- 2.47.2