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
This commit is contained in:
Dan Fandrich 2025-01-23 17:48:21 -08:00
parent 34c1c653fc
commit 23ec39c3b5

View File

@ -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;