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>
2023-08-29 07:56:54 -07:00
..
derphttp_client.go derp/derphttp: fix data race and crash in proxy dial error path 2023-08-29 07:56:54 -07:00
derphttp_server.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
derphttp_test.go all: use Go 1.20's bytes.Clone 2023-02-01 17:39:18 -08:00
mesh_client.go derp: include src IPs in mesh watch messages 2023-08-16 08:46:52 -07:00
websocket.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00