diff options
author | Googler <noreply@google.com> | 2018-08-31 15:47:49 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-08-31 15:48:50 -0700 |
commit | f0d88176549f097fadd3d547827aed3b951ddc92 (patch) | |
tree | 5b085af5ac189e19e2e186e10cccf16b7ab837e7 /pkg/tcpip/stack/nic.go | |
parent | f8ccfbbed4875e65c78c849cd46afa882ba68ee3 (diff) |
Automated rollback of changelist 211103930
PiperOrigin-RevId: 211156845
Change-Id: Ie28011d7eb5f45f3a0158dbee2a68c5edf22f6e0
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 77134c42a..c158e2005 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 _, ok := n.stack.linkAddrResolvers[protocol]; ok { + if linkRes := n.stack.linkAddrResolvers[protocol]; linkRes != nil { ref.linkCache = n.stack } } |