summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/transport/udp/endpoint_state.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-03-03 21:44:24 +0000
committergVisor bot <gvisor-bot@google.com>2020-03-03 21:44:24 +0000
commitb2413e7e032e82fcc9315fde5ce24df86976decf (patch)
tree502e0c22370c96b5b0a56b16a72e4b9c60ea490b /pkg/tcpip/transport/udp/endpoint_state.go
parente2f1549bd0f1a7435eeffa29b1a6c4cc9cd7d91e (diff)
parentc15b8515eb4a07699e5f2401f0332286f0a51043 (diff)
Merge release-20200219.0-86-gc15b851 (automated)
Diffstat (limited to 'pkg/tcpip/transport/udp/endpoint_state.go')
-rw-r--r--pkg/tcpip/transport/udp/endpoint_state.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/tcpip/transport/udp/endpoint_state.go b/pkg/tcpip/transport/udp/endpoint_state.go
index 43fb047ed..466bd9381 100644
--- a/pkg/tcpip/transport/udp/endpoint_state.go
+++ b/pkg/tcpip/transport/udp/endpoint_state.go
@@ -69,6 +69,9 @@ func (e *endpoint) afterLoad() {
// Resume implements tcpip.ResumableEndpoint.Resume.
func (e *endpoint) Resume(s *stack.Stack) {
+ e.mu.Lock()
+ defer e.mu.Unlock()
+
e.stack = s
for _, m := range e.multicastMemberships {