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:
parent
f943347496
commit
c92a4debd2
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user