mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +00:00
Take transmit and receive keys into use separately
This commit is contained in:
@@ -204,8 +204,7 @@ static void cli_sessionloop() {
|
||||
}
|
||||
|
||||
/* A KEX has finished, so we should go back to our KEX_NOTHING state */
|
||||
if (cli_ses.kex_state != KEX_NOTHING && ses.kexstate.recvkexinit == 0
|
||||
&& ses.kexstate.sentkexinit == 0) {
|
||||
if (cli_ses.kex_state != KEX_NOTHING && ses.kexstate.sentnewkeys) {
|
||||
cli_ses.kex_state = KEX_NOTHING;
|
||||
}
|
||||
|
||||
@@ -218,6 +217,7 @@ static void cli_sessionloop() {
|
||||
if (ses.kexstate.donefirstkex == 0) {
|
||||
/* We might reach here if we have partial packet reads or have
|
||||
* received SSG_MSG_IGNORE etc. Just skip it */
|
||||
TRACE2(("donefirstkex false\n"))
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user