set the isserver flag (oops)

fix password auth for the server

--HG--
extra : convert_revision : 234eb604aabaef9ed0dd496ff8db8ecc212ca18c
This commit is contained in:
Matt Johnston
2004-07-29 02:19:03 +00:00
parent 2d82f73484
commit e1491b8ec6
6 changed files with 21 additions and 32 deletions

View File

@@ -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);