mirror of https://github.com/tailscale/tailscale/
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>
(cherry picked from commit b2855cfd86
)
pull/6007/head
parent
fc688fe024
commit
a780929391
Loading…
Reference in New Issue