]> granicus.if.org Git - curl/commitdiff
libssh: part of conditional expression is always true: !result
authorDaniel Stenberg <daniel@haxx.se>
Mon, 23 Sep 2019 08:55:43 +0000 (10:55 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 23 Sep 2019 20:44:02 +0000 (22:44 +0200)
PVS-Studio warning
Fixed #4402

lib/vssh/libssh.c

index 34ae792c3aae7a58c1d04c024670aa961a6d3c60..cad8b378642a52994c282fd86f56a5d97562e413 100644 (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,