From: Victor Julien Date: Wed, 5 Dec 2012 17:29:33 +0000 (+0100) Subject: stream: send eof to app layer from stream end pkt if necessary X-Git-Tag: suricata-1.4~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abecef5d82c985ade201d920d09b5225b6bc8d2b;p=thirdparty%2Fsuricata.git stream: send eof to app layer from stream end pkt if necessary --- diff --git a/src/stream-tcp-reassemble.c b/src/stream-tcp-reassemble.c index fd0255d60e..2adc716394 100644 --- a/src/stream-tcp-reassemble.c +++ b/src/stream-tcp-reassemble.c @@ -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);