mirror of
https://github.com/curl/curl.git
synced 2026-05-14 04:06:20 +03:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue