diff options
author | Daniel Stenberg <daniel@haxx.se> | 2011-05-16 23:46:43 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2011-05-18 22:56:46 +0200 |
commit | b5d170b55110bacc61a4aa8bf99df1afc303c5dc (patch) | |
tree | 916f3bf3ebe145d00fa4a785658d19131d432cb7 /lib/transfer.c | |
parent | d4e000906ac4ef243258a5c9a819a7cde247d16a (diff) | |
download | curl-b5d170b55110bacc61a4aa8bf99df1afc303c5dc.tar.gz |
CLOSESOCKETFUNCTION: added
Introduced the initial setup to allow closesocket callbacks by making
sure sclose() is only ever called from one place in the libcurl source
and still run all test cases fine.
Diffstat (limited to 'lib/transfer.c')
-rw-r--r-- | lib/transfer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index ddbbe529b..59d4792fd 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -2185,7 +2185,7 @@ static CURLcode Curl_do_perform(struct SessionHandle *data) if(CURL_SOCKET_BAD != conn->sock[SECONDARYSOCKET]) { /* if we failed anywhere, we must clean up the secondary socket if it was used */ - sclose(conn->sock[SECONDARYSOCKET]); + Curl_closesocket(conn, conn->sock[SECONDARYSOCKET]); conn->sock[SECONDARYSOCKET] = CURL_SOCKET_BAD; } } |