mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
tests: Fixed a assert bug in torture_auth.
This commit is contained in:
@@ -77,7 +77,7 @@ static void torture_auth_kbdint(void **state) {
|
|||||||
assert_int_equal(ssh_userauth_kbdint_getnprompts(session), 1);
|
assert_int_equal(ssh_userauth_kbdint_getnprompts(session), 1);
|
||||||
|
|
||||||
rc = ssh_userauth_kbdint_setanswer(session, 0, password);
|
rc = ssh_userauth_kbdint_setanswer(session, 0, password);
|
||||||
assert_true(rc < 0);
|
assert_false(rc < 0);
|
||||||
|
|
||||||
rc = ssh_userauth_kbdint(session, NULL, NULL);
|
rc = ssh_userauth_kbdint(session, NULL, NULL);
|
||||||
/* Sometimes, SSH server send an empty query at the end of exchange */
|
/* Sometimes, SSH server send an empty query at the end of exchange */
|
||||||
|
|||||||
Reference in New Issue
Block a user