From 23ec39c3b54bc561cb3cec3cca6bf9ef36d0968f Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Thu, 23 Jan 2025 17:48:21 -0800 Subject: [PATCH] test1960: don't close the socket too early The socket was closed while the handle was still in use, so curl_easy_cleanup ended up setting nonblocking mode on a closed handle. Closes #16123 --- tests/libtest/lib1960.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/libtest/lib1960.c b/tests/libtest/lib1960.c index 58cc8da109..15096f2265 100644 --- a/tests/libtest/lib1960.c +++ b/tests/libtest/lib1960.c @@ -121,9 +121,9 @@ CURLcode test(char *URL) res = curl_easy_perform(curl); test_cleanup: + curl_easy_cleanup(curl); if(client_fd != CURL_SOCKET_BAD) sclose(client_fd); - curl_easy_cleanup(curl); curl_global_cleanup(); return res; -- 2.47.2