diff --git a/src/flow-timeout.c b/src/flow-timeout.c index 87ec7e1686..e08c519537 100644 --- a/src/flow-timeout.c +++ b/src/flow-timeout.c @@ -222,7 +222,7 @@ static inline Packet *FlowPseudoPacketSetup( p->l4.hdrs.tcph->th_dport = htons(f->dp); p->l4.hdrs.tcph->th_seq = htonl(ssn->client.next_seq); - p->l4.hdrs.tcph->th_ack = htonl(ssn->server.last_ack); + p->l4.hdrs.tcph->th_ack = 0; /* to client */ } else { @@ -230,7 +230,7 @@ static inline Packet *FlowPseudoPacketSetup( p->l4.hdrs.tcph->th_dport = htons(f->sp); p->l4.hdrs.tcph->th_seq = htonl(ssn->server.next_seq); - p->l4.hdrs.tcph->th_ack = htonl(ssn->client.last_ack); + p->l4.hdrs.tcph->th_ack = 0; } if (FLOW_IS_IPV4(f)) { diff --git a/src/stream-tcp.c b/src/stream-tcp.c index 337b626810..b212f1e991 100644 --- a/src/stream-tcp.c +++ b/src/stream-tcp.c @@ -5550,10 +5550,8 @@ int StreamTcpPacket (ThreadVars *tv, Packet *p, StreamTcpThread *stt, * we care about reassembly here. */ if (p->flags & PKT_PSEUDO_STREAM_END) { if (PKT_IS_TOCLIENT(p)) { - ssn->client.last_ack = TCP_GET_RAW_ACK(tcph); StreamTcpReassembleHandleSegment(tv, stt->ra_ctx, ssn, &ssn->server, p); } else { - ssn->server.last_ack = TCP_GET_RAW_ACK(tcph); StreamTcpReassembleHandleSegment(tv, stt->ra_ctx, ssn, &ssn->client, p); } /* straight to 'skip' as we already handled reassembly */