From c92a4debd2f469a9d77a6c341a7fedde5ad1735d Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Sun, 12 May 2019 14:27:53 +0200 Subject: [PATCH] ssh-libssh: remove unused variable sock was only used to be assigned to fd_read. Closes https://github.com/curl/curl/pull/3873 --- lib/ssh-libssh.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/ssh-libssh.c b/lib/ssh-libssh.c index f27d6f7cf..9bc092390 100644 --- a/lib/ssh-libssh.c +++ b/lib/ssh-libssh.c @@ -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); -- 2.40.0