mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 17:18:48 -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:
parent
f943347496
commit
c92a4debd2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user