mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 10:57:01 +00:00
Disallow extra kexinit messages
--HG-- branch : fuzz
This commit is contained in:
parent
33eba22966
commit
5567c238a7
@ -487,6 +487,12 @@ void recv_msg_kexinit() {
|
|||||||
TRACE(("continue recv_msg_kexinit: sent kexinit"))
|
TRACE(("continue recv_msg_kexinit: sent kexinit"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* "Once a party has sent a SSH_MSG_KEXINIT message ...
|
||||||
|
further SSH_MSG_KEXINIT messages MUST NOT be sent" */
|
||||||
|
if (ses.kexstate.recvkexinit) {
|
||||||
|
dropbear_exit("Unexpected KEXINIT");
|
||||||
|
}
|
||||||
|
|
||||||
/* start the kex hash */
|
/* start the kex hash */
|
||||||
local_ident_len = strlen(LOCAL_IDENT);
|
local_ident_len = strlen(LOCAL_IDENT);
|
||||||
remote_ident_len = strlen(ses.remoteident);
|
remote_ident_len = strlen(ses.remoteident);
|
||||||
|
Loading…
Reference in New Issue
Block a user