net/netcheck: fix netcheck cli-triggered nil pointer deref (#13782) (#13795)

Updates #13780

Signed-off-by: Jordan Whited <jordan@tailscale.com>
release-branch/1.76
Jordan Whited 3 weeks ago committed by GitHub
parent b6852d5357
commit f4d76fb46d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -940,7 +940,7 @@ func (c *Client) GetReport(ctx context.Context, dm *tailcfg.DERPMap, opts *GetRe
}
}
if len(need) > 0 {
if !opts.OnlyTCP443 {
if opts == nil || !opts.OnlyTCP443 {
// Kick off ICMP in parallel to HTTPS checks; we don't
// reuse the same WaitGroup for those probes because we
// need to close the underlying Pinger after a timeout

Loading…
Cancel
Save