aboutsummaryrefslogtreecommitdiff
path: root/tests/client
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-12-15 20:42:18 +0100
committerAndreas Schneider <asn@cryptomilk.org>2013-12-15 20:42:18 +0100
commita6107f7432332c873812d558754654fac057fbd6 (patch)
treea52aed76f42a4244f3d10d0b05139d141f74dd6a /tests/client
parent9829aa223663d13b840a3c22ac41df80ec49b0c7 (diff)
downloadlibssh-a6107f7432332c873812d558754654fac057fbd6.tar.gz
libssh-a6107f7432332c873812d558754654fac057fbd6.tar.xz
libssh-a6107f7432332c873812d558754654fac057fbd6.zip
tests: Fix blocking mode in password auth test.
Diffstat (limited to 'tests/client')
-rw-r--r--tests/client/torture_auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/client/torture_auth.c b/tests/client/torture_auth.c
index 8402363e..3952b466 100644
--- a/tests/client/torture_auth.c
+++ b/tests/client/torture_auth.c
@@ -265,7 +265,6 @@ static void torture_auth_password_nonblocking(void **state) {
rc = ssh_connect(session);
assert_true(rc == SSH_OK);
- ssh_set_blocking(session,0);
do {
rc = ssh_userauth_none(session, NULL);
@@ -278,6 +277,7 @@ static void torture_auth_password_nonblocking(void **state) {
rc = ssh_userauth_list(session, NULL);
assert_true(rc & SSH_AUTH_METHOD_PASSWORD);
+ ssh_set_blocking(session,0);
do {
rc = ssh_userauth_password(session, NULL, password);
} while(rc==SSH_AUTH_AGAIN);