diff options
| author | Andrew Dunham <andrew@tailscale.com> | 2025-11-21 17:25:56 -0500 |
|---|---|---|
| committer | Andrew Dunham <andrew@du.nham.ca> | 2025-11-24 10:35:23 -0500 |
| commit | 698eecda040e6ee21b2f4502d3b98a6db1b60f6d (patch) | |
| tree | 75dad91b85336896622fdf076a67d851932636e6 /util/execqueue/execqueue.go | |
| parent | a20cdb5c938204d45502d4c52fafc8ad0b0afed9 (diff) | |
| download | tailscale-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/execqueue.go')
0 files changed, 0 insertions, 0 deletions
