mirror of
https://github.com/curl/curl.git
synced 2026-07-28 21:23:06 +03:00
cfilters: make Curl_conn_get_socket simpler
Since it is only used for the first socket anyway, simplify the function. Closes #18219
This commit is contained in:
parent
fd9429cc29
commit
10e60e825c
4 changed files with 13 additions and 12 deletions
|
|
@ -1528,8 +1528,7 @@ CURLcode Curl_http_do_pollset(struct Curl_easy *data,
|
|||
struct easy_pollset *ps)
|
||||
{
|
||||
/* write mode */
|
||||
curl_socket_t sock = Curl_conn_get_socket(data, FIRSTSOCKET);
|
||||
return Curl_pollset_add_out(data, ps, sock);
|
||||
return Curl_pollset_add_out(data, ps, data->conn->sock[FIRSTSOCKET]);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue