From 31dacb20af23c40950534f37994e57fbbee2f662 Mon Sep 17 00:00:00 2001 From: Anoop Saldanha Date: Thu, 28 Oct 2010 11:56:54 +0530 Subject: [PATCH] fix for bug 227. For negated contents that have been added to mpm we might have pmq.pattern_id_array_cnt as 0. We can't ignore inspecting sigs if this is 0, in case the content added is negated --- src/detect.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/detect.c b/src/detect.c index 42a296c..409a731 100644 --- a/src/detect.c +++ b/src/detect.c @@ -956,10 +956,10 @@ int SigMatchSignatures(ThreadVars *th_v, DetectEngineCtx *de_ctx, DetectEngineTh uint8_t pmq_idx = 0; StreamMsg *smsg_inspect = smsg; for ( ; smsg_inspect != NULL; smsg_inspect = smsg_inspect->next, pmq_idx++) { - if (det_ctx->smsg_pmq[pmq_idx].pattern_id_array_cnt == 0) { - SCLogDebug("no match in smsg_inspect %p (%u), idx %d", smsg_inspect, smsg_inspect->data.data_len, pmq_idx); - continue; - } + //if (det_ctx->smsg_pmq[pmq_idx].pattern_id_array_cnt == 0) { + // SCLogDebug("no match in smsg_inspect %p (%u), idx %d", smsg_inspect, smsg_inspect->data.data_len, pmq_idx); + // continue; + //} if (det_ctx->smsg_pmq[pmq_idx].pattern_id_bitarray != NULL) { /* filter out sigs that want pattern matches, but -- 1.7.1