Skip to content

Commit 2ffc9fa

Browse files
committed
ipn/multihost: handle nil on Get
1 parent 1b93f82 commit 2ffc9fa

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

intra/ipn/multihost/map.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ type MHMap struct {
2525
}
2626

2727
func (m *MHMap) Get(hostOrIpport string) (h *MH, _ error) {
28+
if m == nil {
29+
return nil, errMhNotFound
30+
}
2831
m.RLock()
2932
defer m.RUnlock()
3033

0 commit comments

Comments
 (0)