tests: Check error of ssh_userauth_kbdint().

This commit is contained in:
Andreas Schneider
2011-05-28 13:31:17 +02:00
parent 82798035fc
commit 693425afab

View File

@@ -49,6 +49,9 @@ static int _torture_auth_kbdint(ssh_session session,
}
err = ssh_userauth_kbdint(session, NULL, NULL);
if (err == SSH_AUTH_ERROR) {
return err;
}
if (ssh_userauth_kbdint_getnprompts(session) != 1) {
return SSH_AUTH_ERROR;