summaryrefslogtreecommitdiff
path: root/lib/vssh
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-09-23 10:55:43 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-09-23 22:44:02 +0200
commit9aed993da0e33e9aea27bfcd2ebcb9e7181d99c0 (patch)
tree07ee3fcd1832d620b2a02f617b4eb04e88a8a866 /lib/vssh
parentb7e872ac1731cb8aee482cbb8af7c59fe53b71f2 (diff)
downloadcurl-9aed993da0e33e9aea27bfcd2ebcb9e7181d99c0.tar.gz
libssh: part of conditional expression is always true: !result
PVS-Studio warning Fixed #4402
Diffstat (limited to 'lib/vssh')
-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,