1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-25 09:38:54 -05:00

libssh2: part of conditional expression is always true: !result

Fixes warning detected by PVS-Studio
Fixes #4374
This commit is contained in:
Daniel Stenberg 2019-09-19 10:25:15 +02:00
parent 36fbb10071
commit 7d5524500d
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -2811,7 +2811,7 @@ static CURLcode ssh_block_statemach(struct connectdata *conn,
} }
#ifdef HAVE_LIBSSH2_SESSION_BLOCK_DIRECTION #ifdef HAVE_LIBSSH2_SESSION_BLOCK_DIRECTION
if(!result && block) { if(block) {
int dir = libssh2_session_block_directions(sshc->ssh_session); int dir = libssh2_session_block_directions(sshc->ssh_session);
curl_socket_t sock = conn->sock[FIRSTSOCKET]; curl_socket_t sock = conn->sock[FIRSTSOCKET];
curl_socket_t fd_read = CURL_SOCKET_BAD; curl_socket_t fd_read = CURL_SOCKET_BAD;