]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rule analyzer: fix detecting stream match
authorVictor Julien <victor@inliniac.net>
Thu, 5 Jul 2012 10:42:38 +0000 (12:42 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 5 Jul 2012 10:42:38 +0000 (12:42 +0200)
src/detect-engine-analyzer.c

index 8b3ec5f97b2406b661068b09d317e40395d43a0e..3a9f343ae41d11e867f4c93fb8b6b1e951eb452c 100644 (file)
@@ -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++) {