From: Victor Julien Date: Fri, 17 Feb 2017 15:00:42 +0000 (+0100) Subject: stream: remove unused variable X-Git-Tag: suricata-4.0.0-beta1~269 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a5b9eb5fa61dfc83547c53e63c8e6b9da36e70e;p=thirdparty%2Fsuricata.git stream: remove unused variable --- 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;