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:
parent
34c1c653fc
commit
23ec39c3b5
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user