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
1 changed files with 1 additions and 3 deletions

View File

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