diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-09-22 13:22:21 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-09-22 13:32:06 +0200 |
commit | 8b21b51a78e07a9fb0c2ea90292c5b166e44269c (patch) | |
tree | a70c1e32dc5a41f7708400f074bde5b9a8b69878 /libssh/auth1.c | |
parent | 2003a81b444e258c17b212370bf376d880ce7c4d (diff) | |
download | libssh-8b21b51a78e07a9fb0c2ea90292c5b166e44269c.tar.gz libssh-8b21b51a78e07a9fb0c2ea90292c5b166e44269c.tar.xz libssh-8b21b51a78e07a9fb0c2ea90292c5b166e44269c.zip |
Use new ssh options interface in auth functions.
Diffstat (limited to 'libssh/auth1.c')
-rw-r--r-- | libssh/auth1.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |