diff options
author | Matt Johnston <matt@ucc.asn.au> | 2004-07-29 02:19:03 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2004-07-29 02:19:03 +0000 |
commit | e1491b8ec67e0e24b93a7b2997172d57b23a933c (patch) | |
tree | f901dadee3bea69edcb4b019ffcc6a883e078d33 /cli-authpasswd.c | |
parent | 2d82f73484e588e9367657a25331afd4aa0bf976 (diff) |
set the isserver flag (oops)
fix password auth for the server
--HG--
extra : convert_revision : 234eb604aabaef9ed0dd496ff8db8ecc212ca18c
Diffstat (limited to 'cli-authpasswd.c')
-rw-r--r-- | cli-authpasswd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cli-authpasswd.c b/cli-authpasswd.c index 6185334..c04d240 100644 --- a/cli-authpasswd.c +++ b/cli-authpasswd.c @@ -3,6 +3,7 @@ #include "dbutil.h" #include "session.h" #include "ssh.h" +#include "runopts.h" int cli_auth_password() { @@ -14,8 +15,8 @@ int cli_auth_password() { buf_putbyte(ses.writepayload, SSH_MSG_USERAUTH_REQUEST); - buf_putstring(ses.writepayload, ses.authstate.username, - strlen(ses.authstate.username)); + buf_putstring(ses.writepayload, cli_opts.username, + strlen(cli_opts.username)); buf_putstring(ses.writepayload, SSH_SERVICE_CONNECTION, SSH_SERVICE_CONNECTION_LEN); |