aboutgitcodebugslistschat
diff options
context:
space:
mode:
-rw-r--r--tcp.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/tcp.c b/tcp.c
index 80458e3..1ad1050 100644
--- a/tcp.c
+++ b/tcp.c
@@ -2002,12 +2002,8 @@ static void tcp_data_from_tap(struct ctx *c, struct tcp_tap_conn *conn,
seq = ntohl(th->seq);
ack_seq = ntohl(th->ack_seq);
- if (!i) {
- if (count == 1)
- max_ack_seq_wnd = ntohs(th->window);
- else
- max_ack_seq_wnd = ntohs(th->window) - 1;
- }
+ if (!i)
+ max_ack_seq_wnd = ntohs(th->window);
if (th->ack) {
ack = 1;