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
Mihai Parparita b2855cfd86 derp/derphttp: fix nil pointer dereference when closing a netcheck client
NewNetcheckClient only initializes a subset of fields of derphttp.Client,
and the Close() call added by #5707 was result in a nil pointer dereference.
Make Close() safe to call when using NewNetcheckClient() too.

Fixes #5919

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
2 years ago
..
derphttp derp/derphttp: fix nil pointer dereference when closing a netcheck client 2 years ago
testdata derp: add debug traffic handler 3 years ago
derp.go refactor: move from io/ioutil to io and os packages 2 years ago
derp_client.go all: use syncs.AtomicValue 2 years ago
derp_server.go refactor: move from io/ioutil to io and os packages 2 years ago
derp_test.go all: fix spelling mistakes 2 years ago
dropreason_string.go derp: accept dup clients without closing prior's connection 3 years ago