]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
UDP: inspection app layer state as soon as we have it.
authorVictor Julien <victor@inliniac.net>
Mon, 22 Apr 2013 08:42:50 +0000 (10:42 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 22 Apr 2013 08:42:50 +0000 (10:42 +0200)
src/detect.c

index 7e8efbcaafc26c1f74857a92116dd648157a3c1b..33033bd3bd851b6c1390503c6967f0a2c28a885e 100644 (file)
@@ -1242,7 +1242,7 @@ int SigMatchSignatures(ThreadVars *th_v, DetectEngineCtx *de_ctx, DetectEngineTh
             /* Retrieve the app layer state and protocol and the tcp reassembled
              * stream chunks. */
             if ((p->proto == IPPROTO_TCP && (p->flags & PKT_STREAM_EST)) ||
-                (p->proto == IPPROTO_UDP && (p->flowflags & FLOW_PKT_ESTABLISHED)) ||
+                (p->proto == IPPROTO_UDP) ||
                 (p->proto == IPPROTO_SCTP && (p->flowflags & FLOW_PKT_ESTABLISHED)))
             {
                 alstate = AppLayerGetProtoStateFromPacket(p);