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; }