1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 16:48:49 -05:00

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

PVS-Studio warning
Fixed #4402
This commit is contained in:
Daniel Stenberg 2019-09-23 10:55:43 +02:00
parent b7e872ac17
commit 9aed993da0
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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,