mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +00:00
set the isserver flag (oops)
fix password auth for the server --HG-- extra : convert_revision : 234eb604aabaef9ed0dd496ff8db8ecc212ca18c
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user