From 9fe47da9037182180a92d8e4acc7e5c5b57ffafb Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 9 Oct 2012 10:11:55 +0200 Subject: torture: Fix keyboard interactive authentication. --- tests/torture.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/torture.c b/tests/torture.c index 448fafe..a75b0a9 100644 --- a/tests/torture.c +++ b/tests/torture.c @@ -201,8 +201,7 @@ ssh_session torture_ssh_session(const char *host, if (password != NULL) { if (method & SSH_AUTH_METHOD_INTERACTIVE) { rc = _torture_auth_kbdint(session, password); - } - if (method & SSH_AUTH_METHOD_PASSWORD) { + } else if (method & SSH_AUTH_METHOD_PASSWORD) { rc = ssh_userauth_password(session, NULL, password); } } else { -- cgit