stream: don't send empty streammsg at stream end

No longer send an empty StreamMsg through the engine on stream end,
the messages were ignored anyway.
pull/759/head
Victor Julien 13 years ago
parent eb1f5ce358
commit 6e389a1fbb

@ -3057,21 +3057,7 @@ static int StreamTcpReassembleRaw (TcpReassemblyThreadCtx *ra_ctx,
SCReturnInt(0); SCReturnInt(0);
if (stream->seg_list == NULL) { if (stream->seg_list == NULL) {
/* send an empty EOF msg if we have no segments but TCP state SCLogDebug("no segments in the list to reassemble");
* is beyond ESTABLISHED */
if (ssn->state > TCP_ESTABLISHED) {
StreamMsg *smsg = StreamMsgGetFromPool();
if (smsg == NULL) {
SCLogDebug("stream_msg_pool is empty");
SCReturnInt(-1);
}
StreamTcpSetupMsg(ssn, stream, p, smsg);
StreamTcpStoreStreamChunk(ssn, smsg, p, 0);
} else {
SCLogDebug("no segments in the list to reassemble");
}
SCReturnInt(0); SCReturnInt(0);
} }

Loading…
Cancel
Save