mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 01:18:00 +00:00
Don't advertise ext-info-[cs] during rekeys.
Apart from being pointless, it also triggers a bug in OpenSSH pre-8.1 that causes it to send a repeat EXT_INFO after the rekey concludes, which trips our quite draconian check for whether EXT_INFO has been sent at the right time. The OpenSSH bug: https://bugzilla.mindrot.org/show_bug.cgi?id=2929
This commit is contained in:
parent
8dfc39bfb4
commit
12d483a148
@ -837,7 +837,7 @@ static void ssh2_write_kexinit_lists(
|
||||
add_to_commasep(list, kexlists[i][j].name);
|
||||
}
|
||||
}
|
||||
if (i == KEXLIST_KEX) {
|
||||
if (i == KEXLIST_KEX && first_time) {
|
||||
if (our_hostkeys) /* we're the server */
|
||||
add_to_commasep(list, "ext-info-s");
|
||||
else /* we're the client */
|
||||
|
Loading…
Reference in New Issue
Block a user