You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/derp/derphttp
Brad Fitzpatrick 3bce9632d9 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>
10 months ago
..
derphttp_client.go derp/derphttp: fix data race and crash in proxy dial error path 10 months ago
derphttp_server.go all: update copyright and license headers 1 year ago
derphttp_test.go all: use Go 1.20's bytes.Clone 1 year ago
mesh_client.go derp: include src IPs in mesh watch messages 11 months ago
websocket.go all: update copyright and license headers 1 year ago