aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/vssh/libssh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vssh/libssh.c b/lib/vssh/libssh.c
index 34ae792c3..cad8b3786 100644
--- a/lib/vssh/libssh.c
+++ b/lib/vssh/libssh.c
@@ -1999,7 +1999,7 @@ static CURLcode myssh_block_statemach(struct connectdata *conn,
}
}
- if(!result && block) {
+ if(block) {
curl_socket_t fd_read = conn->sock[FIRSTSOCKET];
/* wait for the socket to become ready */
(void) Curl_socket_check(fd_read, CURL_SOCKET_BAD,