mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +00:00
Pubkey auth is mostly there for the client. Something strange with
remote hostkey verification though. --HG-- extra : convert_revision : 8635abe49e499e16d44a8ee79d474dc35257e9cc
This commit is contained in:
@@ -31,7 +31,7 @@ void recv_msg_service_accept() {
|
||||
servicename = buf_getstring(ses.payload, &len);
|
||||
|
||||
/* ssh-userauth */
|
||||
if (cli_ses.state = SERVICE_AUTH_REQ_SENT
|
||||
if (cli_ses.state == SERVICE_AUTH_REQ_SENT
|
||||
&& len == SSH_SERVICE_USERAUTH_LEN
|
||||
&& strncmp(SSH_SERVICE_USERAUTH, servicename, len) == 0) {
|
||||
|
||||
@@ -42,7 +42,7 @@ void recv_msg_service_accept() {
|
||||
}
|
||||
|
||||
/* ssh-connection */
|
||||
if (cli_ses.state = SERVICE_CONN_REQ_SENT
|
||||
if (cli_ses.state == SERVICE_CONN_REQ_SENT
|
||||
&& len == SSH_SERVICE_CONNECTION_LEN
|
||||
&& strncmp(SSH_SERVICE_CONNECTION, servicename, len) == 0) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user