Fix locking in AddressableEndpointState
PiperOrigin-RevId: 338156438
This commit is contained in:
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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue