From 4845631335f1eb4b657cbdf2843b870a865dc601 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 19 Mar 2013 12:23:37 +0100 Subject: [PATCH] tcp stream: don't move to LAST_ACK on toserver resent of FIN --- src/stream-tcp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/stream-tcp.c b/src/stream-tcp.c index b210293d87..53184f81c5 100644 --- a/src/stream-tcp.c +++ b/src/stream-tcp.c @@ -3268,9 +3268,7 @@ static int StreamTcpPacketStateCloseWait(ThreadVars *tv, Packet *p, SCReturnInt(-1); } - StreamTcpPacketSetState(p, ssn, TCP_LAST_ACK); - ssn->client.flags |= STREAMTCP_STREAM_FLAG_CLOSE_INITIATED; - SCLogDebug("ssn %p: state changed to TCP_LAST_ACK", ssn); + /* don't update to LAST_ACK here as we want a toclient FIN for that */ ssn->server.window = TCP_GET_WINDOW(p) << ssn->server.wscale;