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>
2022-10-13 11:49:27 -07:00
..
derphttp derp/derphttp: fix nil pointer dereference when closing a netcheck client 2022-10-13 11:49:27 -07:00
testdata derp: add debug traffic handler 2021-06-18 15:47:55 -07:00
derp_client.go all: use syncs.AtomicValue 2022-08-04 11:52:16 -07:00
derp_server.go refactor: move from io/ioutil to io and os packages 2022-09-15 21:45:53 -07:00
derp_test.go all: fix spelling mistakes 2022-09-29 13:36:13 -07:00
derp.go refactor: move from io/ioutil to io and os packages 2022-09-15 21:45:53 -07:00
dropreason_string.go derp: accept dup clients without closing prior's connection 2021-08-31 08:21:21 -07:00