diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-05-28 13:31:17 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-05-28 13:31:17 +0200 |
commit | 693425afabb76ea496bd531ca23ea0cf66c06699 (patch) | |
tree | 4bb03f66f1f5a806abd33e4ba5fc8c84dc5bc938 /tests/torture.c | |
parent | 82798035fc83d0779a818c444efe7cd6f812ea59 (diff) | |
download | libssh-693425afabb76ea496bd531ca23ea0cf66c06699.tar.gz libssh-693425afabb76ea496bd531ca23ea0cf66c06699.tar.xz libssh-693425afabb76ea496bd531ca23ea0cf66c06699.zip |
tests: Check error of ssh_userauth_kbdint().
Diffstat (limited to 'tests/torture.c')
-rw-r--r-- | tests/torture.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/torture.c b/tests/torture.c index 06d9a67c..126a53e3 100644 --- a/tests/torture.c +++ b/tests/torture.c @@ -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; |