diff options
author | Bhasker Hariharan <bhaskerh@google.com> | 2018-09-04 14:30:15 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-09-04 14:31:52 -0700 |
commit | 2cff07381a911ad52cf9df70d702f39217e9539e (patch) | |
tree | 6ae3c3dd38e3c14302e0d053faf2b0106d66c467 /pkg/tcpip/stack/nic.go | |
parent | 9ae4e28f75979905a6396962a232e217323499f9 (diff) |
Automated rollback of changelist 211156845
PiperOrigin-RevId: 211525182
Change-Id: I462c20328955c77ecc7bfd8ee803ac91f15858e6
Diffstat (limited to 'pkg/tcpip/stack/nic.go')
-rw-r--r-- | pkg/tcpip/stack/nic.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/stack/nic.go b/pkg/tcpip/stack/nic.go index c158e2005..77134c42a 100644 --- a/pkg/tcpip/stack/nic.go +++ b/pkg/tcpip/stack/nic.go @@ -165,7 +165,7 @@ func (n *NIC) addAddressLocked(protocol tcpip.NetworkProtocolNumber, addr tcpip. // Set up cache if link address resolution exists for this protocol. if n.linkEP.Capabilities()&CapabilityResolutionRequired != 0 { - if linkRes := n.stack.linkAddrResolvers[protocol]; linkRes != nil { + if _, ok := n.stack.linkAddrResolvers[protocol]; ok { ref.linkCache = n.stack } } |