mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 10:40:27 +09:00
tests: Check error of ssh_userauth_kbdint().
This commit is contained in:
@@ -49,6 +49,9 @@ static int _torture_auth_kbdint(ssh_session session,
|
|||||||
}
|
}
|
||||||
|
|
||||||
err = ssh_userauth_kbdint(session, NULL, NULL);
|
err = ssh_userauth_kbdint(session, NULL, NULL);
|
||||||
|
if (err == SSH_AUTH_ERROR) {
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
|
||||||
if (ssh_userauth_kbdint_getnprompts(session) != 1) {
|
if (ssh_userauth_kbdint_getnprompts(session) != 1) {
|
||||||
return SSH_AUTH_ERROR;
|
return SSH_AUTH_ERROR;
|
||||||
|
|||||||
Reference in New Issue
Block a user