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:
parent
36fbb10071
commit
7d5524500d
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user