aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-09-19 10:25:15 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-09-20 08:07:52 +0200
commit7d5524500d63e892743071213062f8e46a0fee3f (patch)
tree55abdac64e570f8a4d6078edcda97739c6a37ba7 /lib
parent36fbb10071d8ae17676b7eb8ec437283cbc6113d (diff)
libssh2: part of conditional expression is always true: !result
Fixes warning detected by PVS-Studio Fixes #4374
Diffstat (limited to 'lib')
-rw-r--r--lib/vssh/libssh2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vssh/libssh2.c b/lib/vssh/libssh2.c
index 2b25a514f..6a6793aa3 100644
--- a/lib/vssh/libssh2.c
+++ b/lib/vssh/libssh2.c
@@ -2811,7 +2811,7 @@ static CURLcode ssh_block_statemach(struct connectdata *conn,
}
#ifdef HAVE_LIBSSH2_SESSION_BLOCK_DIRECTION
- if(!result && block) {
+ if(block) {
int dir = libssh2_session_block_directions(sshc->ssh_session);
curl_socket_t sock = conn->sock[FIRSTSOCKET];
curl_socket_t fd_read = CURL_SOCKET_BAD;