]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
stream: send eof to app layer from stream end pkt if necessary
authorVictor Julien <victor@inliniac.net>
Wed, 5 Dec 2012 17:29:33 +0000 (18:29 +0100)
committerVictor Julien <victor@inliniac.net>
Wed, 5 Dec 2012 17:30:02 +0000 (18:30 +0100)
src/stream-tcp-reassemble.c

index fd0255d60ea1dfe8d8b2f6602d9bc727780e9945..2adc716394161e7fb24347c23d5bd878a6fac337 100644 (file)
@@ -2631,7 +2631,7 @@ static int StreamTcpReassembleAppLayer (ThreadVars *tv,
     {
         /* send an empty EOF msg if we have no segments but TCP state
          * is beyond ESTABLISHED */
-        if (ssn->state >= TCP_CLOSING) {
+        if (ssn->state >= TCP_CLOSING || (p->flags & PKT_PSEUDO_STREAM_END)) {
             SCLogDebug("sending empty eof message");
             /* send EOF to app layer */
             STREAM_SET_FLAGS(ssn, stream, p, flags);