summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/transport/tcp/accept.go
diff options
context:
space:
mode:
authorIan Gudger <igudger@google.com>2018-12-13 13:01:56 -0800
committerShentubot <shentubot@google.com>2018-12-13 13:02:49 -0800
commit6253d32cc932e76608be5c57a4870b3d61464487 (patch)
tree5d3ad6e99cf83e42f13a19db9ab4e37e32657413 /pkg/tcpip/transport/tcp/accept.go
parentf484b6d4c2f1dea6169ed50a5d3d1809e8f007be (diff)
transport/tcp: remove unused error return values
PiperOrigin-RevId: 225421480 Change-Id: I1e9259b0b7e8490164e830b73338a615129c7f0e
Diffstat (limited to 'pkg/tcpip/transport/tcp/accept.go')
-rw-r--r--pkg/tcpip/transport/tcp/accept.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/pkg/tcpip/transport/tcp/accept.go b/pkg/tcpip/transport/tcp/accept.go
index 5a88d25d0..32f65367c 100644
--- a/pkg/tcpip/transport/tcp/accept.go
+++ b/pkg/tcpip/transport/tcp/accept.go
@@ -245,11 +245,7 @@ func (l *listenContext) createEndpointAndPerformHandshake(s *segment, opts *head
}
// Perform the 3-way handshake.
- h, err := newHandshake(ep, l.rcvWnd)
- if err != nil {
- ep.Close()
- return nil, err
- }
+ h := newHandshake(ep, l.rcvWnd)
h.resetToSynRcvd(cookie, irs, opts)
if err := h.execute(); err != nil {