diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-03-17 00:03:37 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-03-17 00:03:37 +0000 |
commit | 93ab0c0426567dc58ee765ef7dc12f3139cd25df (patch) | |
tree | 7da7b5dc2ff6731bf7f0a2243d9a5d441829f786 /pkg/tcpip/transport/tcp | |
parent | 25ad40d9505a387348b33bf1a4b66e0f97cdb576 (diff) | |
parent | 3dd7ad13b4586791cdc1c1efdef90760a7deff8e (diff) |
Merge release-20210309.0-36-g3dd7ad13b (automated)
Diffstat (limited to 'pkg/tcpip/transport/tcp')
-rw-r--r-- | pkg/tcpip/transport/tcp/rcv.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/transport/tcp/rcv.go b/pkg/tcpip/transport/tcp/rcv.go index a5c82b8fa..bc6793fc6 100644 --- a/pkg/tcpip/transport/tcp/rcv.go +++ b/pkg/tcpip/transport/tcp/rcv.go @@ -260,7 +260,7 @@ func (r *receiver) consumeSegment(s *segment, segSeq seqnum.Value, segLen seqnum case StateEstablished: r.ep.setEndpointState(StateCloseWait) case StateFinWait1: - if s.flagIsSet(header.TCPFlagAck) { + if s.flagIsSet(header.TCPFlagAck) && s.ackNumber == r.ep.snd.sndNxt { // FIN-ACK, transition to TIME-WAIT. r.ep.setEndpointState(StateTimeWait) } else { |