gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 55/222: libssh2: part of conditional expression is always true:


From: gnunet
Subject: [gnurl] 55/222: libssh2: part of conditional expression is always true: !result
Date: Thu, 07 Nov 2019 00:09:11 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 7d5524500d63e892743071213062f8e46a0fee3f
Author: Daniel Stenberg <address@hidden>
AuthorDate: Thu Sep 19 10:25:15 2019 +0200

    libssh2: part of conditional expression is always true: !result
    
    Fixes warning detected by PVS-Studio
    Fixes #4374
---
 lib/vssh/libssh2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]