aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-09-23 10:54:03 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-09-23 22:44:01 +0200
commit9221896768d4c6961a5c48cf863a1e46fe481c41 (patch)
treef29693faebadd371de629e3815230e334259d53e
parent32fa043202376a89da33380e7d853a1775a16cdc (diff)
libssh: The expression is excessive or contains a misprint
PVS-Studio warning Fixes #4402
-rw-r--r--lib/vssh/libssh.c2
1 files changed, 1 insertions, 1 deletions
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);