]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Wait until both sides close the TCP connection before initiating cleanup 233/head
authorLudovico Cavedon <cavedon@lastline.com>
Sat, 1 Dec 2012 23:29:06 +0000 (15:29 -0800)
committerLudovico Cavedon <cavedon@lastline.com>
Sat, 1 Dec 2012 23:29:06 +0000 (15:29 -0800)
src/stream-tcp-reassemble.c

index b188e496b55b2e7c1ca374ede0e9c5bc70368f7a..fd0255d60ea1dfe8d8b2f6602d9bc727780e9945 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_ESTABLISHED) {
+        if (ssn->state >= TCP_CLOSING) {
             SCLogDebug("sending empty eof message");
             /* send EOF to app layer */
             STREAM_SET_FLAGS(ssn, stream, p, flags);