gnunet-svn
[Top][All Lists]
Advanced

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

[gnurl] 81/222: libssh: The expression is excessive or contains a mispri


From: gnunet
Subject: [gnurl] 81/222: libssh: The expression is excessive or contains a misprint
Date: Thu, 07 Nov 2019 00:09:37 +0100

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

ng0 pushed a commit to branch master
in repository gnurl.

commit 9221896768d4c6961a5c48cf863a1e46fe481c41
Author: Daniel Stenberg <address@hidden>
AuthorDate: Mon Sep 23 10:54:03 2019 +0200

    libssh: The expression is excessive or contains a misprint
    
    PVS-Studio warning
    Fixes #4402
---
 lib/vssh/libssh.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/vssh/libssh.c b/lib/vssh/libssh.c
index 76956a3c1..e4d02339a 100644
--- a/lib/vssh/libssh.c
+++ b/lib/vssh/libssh.c
@@ -493,7 +493,7 @@ restart:
         return SSH_ERROR;
 
       nprompts = ssh_userauth_kbdint_getnprompts(sshc->ssh_session);
-      if(nprompts == SSH_ERROR || nprompts != 1)
+      if(nprompts != 1)
         return SSH_ERROR;
 
       rc = ssh_userauth_kbdint_setanswer(sshc->ssh_session, 0, conn->passwd);

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



reply via email to

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