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

Updates #13780

Signed-off-by: Jordan Whited <[email protected]>
This commit is contained in:
Jordan Whited authored and GitHub committed 2024-10-14 09:14:55 -07:00
1 parent b6852d5357
commit f4d76fb46d
1 file changed
+1 -1
+1 -1
View File
@@ -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