diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-05-26 19:28:13 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-05-26 19:28:13 +0000 |
commit | 66e5e6cfec12612f3d6fd9baa72ab93752211883 (patch) | |
tree | ae47482de0bc6c5ec7ecc95170ff364d37d2d289 /pkg/tcpip/transport/tcp/accept.go | |
parent | 425f4b5d29de7dae77ba32ca63896f69c31915d3 (diff) | |
parent | 9fcc44f991203343438b489389c2b861040086ac (diff) |
Merge release-20210518.0-49-g9fcc44f99 (automated)
Diffstat (limited to 'pkg/tcpip/transport/tcp/accept.go')
-rw-r--r-- | pkg/tcpip/transport/tcp/accept.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/transport/tcp/accept.go b/pkg/tcpip/transport/tcp/accept.go index 4a33fbc24..db75228a1 100644 --- a/pkg/tcpip/transport/tcp/accept.go +++ b/pkg/tcpip/transport/tcp/accept.go @@ -550,7 +550,7 @@ func (e *endpoint) handleListenSegment(ctx *listenContext, s *segment) tcpip.Err e.rcvQueueInfo.rcvQueueMu.Lock() rcvClosed := e.rcvQueueInfo.RcvClosed e.rcvQueueInfo.rcvQueueMu.Unlock() - if rcvClosed || s.flagsAreSet(header.TCPFlagSyn|header.TCPFlagAck) { + if rcvClosed || s.flags.Contains(header.TCPFlagSyn|header.TCPFlagAck) { // If the endpoint is shutdown, reply with reset. // // RFC 793 section 3.4 page 35 (figure 12) outlines that a RST |