summaryrefslogtreecommitdiffhomepage
path: root/util/execqueue
diff options
context:
space:
mode:
authorAndrew Dunham <andrew@tailscale.com>2025-11-21 17:25:56 -0500
committerAndrew Dunham <andrew@du.nham.ca>2025-11-24 10:35:23 -0500
commit698eecda040e6ee21b2f4502d3b98a6db1b60f6d (patch)
tree75dad91b85336896622fdf076a67d851932636e6 /util/execqueue
parenta20cdb5c938204d45502d4c52fafc8ad0b0afed9 (diff)
downloadtailscale-698eecda040e6ee21b2f4502d3b98a6db1b60f6d.tar.xz
tailscale-698eecda040e6ee21b2f4502d3b98a6db1b60f6d.zip
ipn/ipnlocal: fix panic in driveTransport on network error
When the underlying transport returns a network error, the RoundTrip method returns (nil, error). The defer was attempting to access resp without checking if it was nil first, causing a panic. Fix this by checking for nil in the defer. Also changes driveTransport.tr from *http.Transport to http.RoundTripper and adds a test. Fixes #17306 Signed-off-by: Andrew Dunham <andrew@tailscale.com> Change-Id: Icf38a020b45aaa9cfbc1415d55fd8b70b978f54c
Diffstat (limited to 'util/execqueue')
0 files changed, 0 insertions, 0 deletions