We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4e90a1 commit 8a3cdceCopy full SHA for 8a3cdce
intra/ipn/multihost/map.go
@@ -66,8 +66,12 @@ func (m *MHMap) Put(h *MH) (ok bool) {
66
}
67
68
func (m *MHMap) putLocked(h *MH) (ok bool) {
69
+ if h == nil {
70
+ return false
71
+ }
72
+
73
if _, dup := m.uniq[h]; dup {
- log.W("multihost: %s map: put: dup; call refresh instead?", m.k, dup)
74
+ log.W("multihost: %s map: put: dup; call refresh instead?", m.k)
75
return h.Len() > 0
76
77
0 commit comments