]> granicus.if.org Git - curl/commitdiff
libssh: The expression is excessive or contains a misprint
authorDaniel Stenberg <daniel@haxx.se>
Mon, 23 Sep 2019 08:54:03 +0000 (10:54 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 23 Sep 2019 20:44:01 +0000 (22:44 +0200)
PVS-Studio warning
Fixes #4402

lib/vssh/libssh.c

index 76956a3c1fa592709b5daba41c9f936f708b0e40..e4d02339a24901d2dbc69dc5721561a655e93e4e 100644 (file)
@@ -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);