From: Victor Julien Date: Wed, 13 Apr 2016 08:14:35 +0000 (+0200) Subject: stream-tcp: improve test function cleanup X-Git-Tag: suricata-3.1RC1~246 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4575d141946e5200d84047bfa8b78c7d05fa551;p=thirdparty%2Fsuricata.git stream-tcp: improve test function cleanup --- diff --git a/src/stream-tcp-util.c b/src/stream-tcp-util.c index 54c500bc93..b58db5c283 100644 --- a/src/stream-tcp-util.c +++ b/src/stream-tcp-util.c @@ -68,6 +68,7 @@ void StreamTcpUTClearSession(TcpSession *ssn) { StreamTcpUTClearStream(&ssn->client); StreamTcpUTClearStream(&ssn->server); + StreamTcpSessionCleanup(ssn); } void StreamTcpUTSetupStream(TcpStream *s, uint32_t isn) @@ -80,7 +81,7 @@ void StreamTcpUTSetupStream(TcpStream *s, uint32_t isn) void StreamTcpUTClearStream(TcpStream *s) { - StreamTcpReturnStreamSegments(s); + StreamTcpStreamCleanup(s); } int StreamTcpUTAddSegmentWithPayload(ThreadVars *tv, TcpReassemblyThreadCtx *ra_ctx, TcpStream *stream, uint32_t seq, uint8_t *payload, uint16_t len)