mirror of
https://github.com/curl/curl.git
synced 2026-05-20 00:06:26 +03:00
CLOSESOCKETFUNCTION: use the callback
Fix the return type of the callback to match close() and make use of it.
This commit is contained in:
parent
b5d170b551
commit
60f0ebbdc9
2 changed files with 5 additions and 4 deletions
|
|
@ -1172,7 +1172,8 @@ curl_socket_t Curl_getconnectinfo(struct SessionHandle *data,
|
|||
int Curl_closesocket(struct connectdata *conn,
|
||||
curl_socket_t sock)
|
||||
{
|
||||
(void)conn;
|
||||
|
||||
return sclose(sock);
|
||||
if(conn && conn->fclosesocket)
|
||||
return conn->fclosesocket(conn->closesocket_client, sock);
|
||||
else
|
||||
return sclose(sock);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue