mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-15 10:49:18 +00:00
wgengine/magicsock: fix data race regression in disco ping callbacks
Regression from c15997511d
. The callback could be run multiple times
from different endpoints.
Fixes #9801
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:

committed by
Brad Fitzpatrick

parent
5297bd2cff
commit
a6270826a3
@@ -757,7 +757,7 @@ func (c *Conn) Ping(peer tailcfg.NodeView, res *ipnstate.PingResult, size int, c
|
||||
cb(res)
|
||||
return
|
||||
}
|
||||
ep.cliPing(res, size, cb)
|
||||
ep.discoPing(res, size, cb)
|
||||
}
|
||||
|
||||
// c.mu must be held
|
||||
|
Reference in New Issue
Block a user