summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/transport
diff options
context:
space:
mode:
authorIan Gudger <igudger@google.com>2018-09-21 18:13:38 -0700
committerShentubot <shentubot@google.com>2018-09-21 18:14:38 -0700
commit4094480b28e7367346840938f83db65f20e7ddaa (patch)
treea19ac5ef6dc08464398973e2c7bb8c20cee9a97b /pkg/tcpip/transport
parent7ce13ebcadc764c5f69215f072b53d3843bec679 (diff)
Remove unnecessary defer
PiperOrigin-RevId: 214073949 Change-Id: I8fab916cd77362c13dac2c9dcf2ecc1710d87a5e
Diffstat (limited to 'pkg/tcpip/transport')
-rw-r--r--pkg/tcpip/transport/udp/endpoint.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/transport/udp/endpoint.go b/pkg/tcpip/transport/udp/endpoint.go
index 4de2aa3e3..f2dd98f35 100644
--- a/pkg/tcpip/transport/udp/endpoint.go
+++ b/pkg/tcpip/transport/udp/endpoint.go
@@ -400,8 +400,8 @@ func (e *endpoint) SetSockOpt(opt interface{}) *tcpip.Error {
case tcpip.MulticastTTLOption:
e.mu.Lock()
- defer e.mu.Unlock()
e.multicastTTL = uint8(v)
+ e.mu.Unlock()
case tcpip.AddMembershipOption:
nicID := v.NIC