mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Fix locking in AddressableEndpointState
PiperOrigin-RevId: 338156438
This commit is contained in:
committed by
gVisor bot
parent
4da10f873e
commit
2bfdbfd1fd
@@ -361,6 +361,8 @@ func (a *AddressableEndpointState) RemovePermanentEndpoint(ep AddressEndpoint) *
|
||||
return tcpip.ErrInvalidEndpointState
|
||||
}
|
||||
|
||||
a.mu.Lock()
|
||||
defer a.mu.Unlock()
|
||||
return a.removePermanentEndpointLocked(addrState)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user