1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-24 00:58:48 -05:00

libssh: The expression is excessive or contains a misprint

PVS-Studio warning
Fixes #4402
This commit is contained in:
Daniel Stenberg 2019-09-23 10:54:03 +02:00
parent 32fa043202
commit 9221896768
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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);