From 2072ad80af9f1ff20ceb8926b3bf26b7f91eaec5 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 29 Oct 2010 11:12:39 +0200 Subject: [PATCH] Never create a pseudo packet based on a pseudo packet. --- src/stream-tcp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/stream-tcp.c b/src/stream-tcp.c index 05a997b727..caceeb14ea 100644 --- a/src/stream-tcp.c +++ b/src/stream-tcp.c @@ -3373,6 +3373,10 @@ void StreamTcpPseudoPacketCreateStreamEndPacket(Packet *p, TcpSession *ssn, Pack { SCEnter(); + if (p->flags & PKT_PSEUDO_STREAM_END) { + SCReturn; + } + /* no need for a pseudo packet if there is nothing left to reassemble */ if (PKT_IS_TOSERVER(p)) { if (ssn->server.seg_list == NULL) {