mirror of https://github.com/tailscale/tailscale/
derp/derphttp: fix data race and crash in proxy dial error path
Named result meant error paths assigned that variable to nil. But a goroutine was concurrently using that variable. Don't use a named result for that first parameter. Then then return paths don't overwrite it. Fixes #9129 Change-Id: Ie57f99d40ca8110085097780686d9bd620aaf160 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>pull/9137/head
parent
8ba07aac85
commit
3bce9632d9
Loading…
Reference in New Issue