From: Dan Fandrich Date: Fri, 24 Jan 2025 01:48:21 +0000 (-0800) Subject: test1960: don't close the socket too early X-Git-Tag: curl-8_12_0~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=23ec39c3b54bc561cb3cec3cca6bf9ef36d0968f;p=thirdparty%2Fcurl.git 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 --- 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;