From: Victor Julien Date: Thu, 21 Jun 2018 13:22:26 +0000 (+0200) Subject: app-layer/tcp: set STREAM_MIDSTREAM flag X-Git-Tag: suricata-4.1.0-rc1~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c584c2b74db0934d38ea083230e9e9931801d39;p=thirdparty%2Fsuricata.git app-layer/tcp: set STREAM_MIDSTREAM flag --- diff --git a/src/stream-tcp-reassemble.c b/src/stream-tcp-reassemble.c index 9889ff0d14..87f575312e 100644 --- a/src/stream-tcp-reassemble.c +++ b/src/stream-tcp-reassemble.c @@ -682,6 +682,11 @@ static uint8_t StreamGetAppLayerFlags(TcpSession *ssn, TcpStream *stream, if (ssn->state == TCP_CLOSED) { flag |= STREAM_EOF; } + + if (ssn->flags & STREAMTCP_FLAG_MIDSTREAM) { + flag |= STREAM_MIDSTREAM; + } + if (p->flags & PKT_PSEUDO_STREAM_END) { flag |= STREAM_EOF; }