diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-01-24 21:22:31 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-01-24 21:22:31 +0000 |
commit | 4f0c15f9167103bbb998ab6f14e156cd04759b21 (patch) | |
tree | 01915d071408663b2fc39c731a0e052222b8bb47 | |
parent | 1e9a87f806f148df8ebe96d995fe21d6ba4b3384 (diff) | |
parent | 878bda6e19a0d55525ea6b1600f3413e0c5d6a84 (diff) |
Merge release-20200115.0-99-g878bda6 (automated)
-rw-r--r-- | pkg/tcpip/stack/nic.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/tcpip/stack/nic.go b/pkg/tcpip/stack/nic.go index 79556a36f..7dad9a8cb 100644 --- a/pkg/tcpip/stack/nic.go +++ b/pkg/tcpip/stack/nic.go @@ -1208,6 +1208,9 @@ func (n *NIC) Stack() *Stack { // false. It will only return true if the address is associated with the NIC // AND it is tentative. func (n *NIC) isAddrTentative(addr tcpip.Address) bool { + n.mu.RLock() + defer n.mu.RUnlock() + ref, ok := n.mu.endpoints[NetworkEndpointID{addr}] if !ok { return false |