From c2e484ae8858d567983d1810ba79734f170047f6 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 5 Jul 2012 12:42:38 +0200 Subject: [PATCH] rule analyzer: fix detecting stream match --- src/detect-engine-analyzer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/detect-engine-analyzer.c b/src/detect-engine-analyzer.c index 8b3ec5f97b..3a9f343ae4 100644 --- a/src/detect-engine-analyzer.c +++ b/src/detect-engine-analyzer.c @@ -217,7 +217,8 @@ void EngineAnalysisRules(Signature *s, char *line) if (s->flags & SIG_FLAG_REQUIRE_PACKET) { packet_buf += 1; - } else if (s->flags & SIG_FLAG_REQUIRE_PACKET) { + } + if (s->flags & SIG_FLAG_REQUIRE_STREAM) { stream_buf += 1; } for (list_id = 0; list_id < DETECT_SM_LIST_MAX; list_id++) {