Andrew Dunham
698eecda04
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
2025-11-24 10:35:23 -05:00
..
2023-02-07 14:34:04 -08:00
2023-08-11 06:37:26 -07:00
2023-08-11 06:37:26 -07:00
2024-11-18 10:50:30 -08:00
2025-08-27 09:51:28 -04:00
2025-09-30 14:58:25 -07:00
2025-11-18 07:56:10 -08:00
2025-11-16 15:32:51 -08:00
2025-09-24 08:31:13 -07:00
2025-09-16 14:11:15 -07:00
2025-03-13 14:14:03 +00:00
2025-11-16 19:13:59 -08:00
2025-11-18 07:56:10 -08:00
2025-11-24 10:35:23 -05:00
2025-09-11 14:26:08 -07:00
2025-11-24 10:35:23 -05:00
2025-09-15 10:36:17 -04:00
2025-10-08 08:00:42 -07:00
2025-09-16 11:25:29 -04:00
2025-05-19 15:36:25 -07:00
2025-10-31 14:28:39 -07:00
2025-11-18 07:56:10 -08:00
2025-11-20 15:52:58 -06:00
2025-09-16 11:25:29 -04:00
2025-09-26 14:00:12 -07:00
2025-11-19 13:21:52 +00:00
2025-11-19 14:51:13 +00:00
2025-10-02 16:01:55 -07:00
2025-11-18 07:56:10 -08:00
2025-09-11 14:26:08 -07:00
2024-04-28 07:34:52 -07:00
2025-10-06 20:59:47 -07:00
2025-10-02 12:48:12 -07:00
2025-10-02 12:48:12 -07:00
2024-08-28 14:42:35 -05:00
2025-11-17 12:37:31 -08:00
2024-08-28 14:42:35 -05:00
2025-11-16 15:32:51 -08:00
2025-09-16 08:25:06 -07:00
2025-11-20 13:40:05 -06:00
2025-11-20 13:40:05 -06:00
2025-09-16 18:37:46 -07:00
2025-09-16 11:25:29 -04:00
2025-09-16 18:37:46 -07:00
2025-11-18 12:16:15 -08:00
2025-09-12 12:23:34 -07:00
2025-09-24 09:19:01 -07:00
2025-09-28 11:55:07 -07:00