From: Daniel Stenberg Date: Mon, 23 Sep 2019 08:54:03 +0000 (+0200) Subject: libssh: The expression is excessive or contains a misprint X-Git-Tag: curl-7_67_0~131 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9221896768d4c6961a5c48cf863a1e46fe481c41;p=thirdparty%2Fcurl.git libssh: The expression is excessive or contains a misprint PVS-Studio warning Fixes #4402 --- diff --git a/lib/vssh/libssh.c b/lib/vssh/libssh.c index 76956a3c1f..e4d02339a2 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);