From 8b21b51a78e07a9fb0c2ea90292c5b166e44269c Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 22 Sep 2009 13:22:21 +0200 Subject: Use new ssh options interface in auth functions. --- libssh/auth1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libssh/auth1.c') diff --git a/libssh/auth1.c b/libssh/auth1.c index b940399..a1e599c 100644 --- a/libssh/auth1.c +++ b/libssh/auth1.c @@ -60,7 +60,7 @@ static int send_username(SSH_SESSION *session, const char *username) { if (!username) { if(!(username = session->options->username)) { - if(ssh_options_default_username(session->options)) { + if (ssh_options_set(session->options, SSH_OPTIONS_USER, NULL) < 0) { return session->auth_service_asked = SSH_AUTH_ERROR; } else { username = session->options->username; -- cgit