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:
Stefan Eissing 2025-08-07 14:18:59 +02:00 committed by Daniel Stenberg
parent fd9429cc29
commit 10e60e825c
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
4 changed files with 13 additions and 12 deletions

View file

@ -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]);
}
/*