1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-25 01:28:51 -05:00

ssh-libssh: remove unused variable

sock was only used to be assigned to fd_read.

Closes https://github.com/curl/curl/pull/3873
This commit is contained in:
Marcel Raad 2019-05-12 14:27:53 +02:00
parent f943347496
commit c92a4debd2
No known key found for this signature in database
GPG Key ID: FE4D8BC5EE1701DD

View File

@ -2012,9 +2012,7 @@ static CURLcode myssh_block_statemach(struct connectdata *conn,
} }
if(!result && block) { if(!result && block) {
curl_socket_t sock = conn->sock[FIRSTSOCKET]; curl_socket_t fd_read = conn->sock[FIRSTSOCKET];
curl_socket_t fd_read = CURL_SOCKET_BAD;
fd_read = sock;
/* wait for the socket to become ready */ /* wait for the socket to become ready */
(void) Curl_socket_check(fd_read, CURL_SOCKET_BAD, (void) Curl_socket_check(fd_read, CURL_SOCKET_BAD,
CURL_SOCKET_BAD, left > 1000 ? 1000 : left); CURL_SOCKET_BAD, left > 1000 ? 1000 : left);