stream: fix midstream syn/ack setup

If midstream is enabled and the first packet is the syn/ack packet from
the 3whs, initialized server.last_ack to the packets seq.

This fixes tracking the session.
pull/945/head
Victor Julien 12 years ago
parent 59ccd7b62d
commit c1dcc7a268

@ -833,6 +833,8 @@ static int StreamTcpPacketStateNone(ThreadVars *tv, Packet *p,
ssn->client.next_seq = ssn->client.isn + 1;
ssn->client.last_ack = TCP_GET_ACK(p);
ssn->server.last_ack = TCP_GET_SEQ(p);
/** If the client has a wscale option the server had it too,
* so set the wscale for the server to max. Otherwise none
* will have the wscale opt just like it should. */

Loading…
Cancel
Save