mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-21 04:55:02 -05:00
Stop saying we'll try compression later, if it is later.
On the post-userauth rekey, when we're specifically rekeying in order to turn on delayed compression, we shouldn't write the Event Log "Server supports delayed compression; will try this later" message that we did in the original key exchange. At this point, it _is_ later, and we're about to turn on compression right now!
This commit is contained in:
parent
d4304f1b7b
commit
20e8fdece3
3
ssh.c
3
ssh.c
@ -5731,7 +5731,8 @@ static void do_ssh2_transport(void *vctx)
|
|||||||
}
|
}
|
||||||
if ((i == KEXLIST_CSCOMP || i == KEXLIST_SCCOMP) &&
|
if ((i == KEXLIST_CSCOMP || i == KEXLIST_SCCOMP) &&
|
||||||
in_commasep_string(alg->u.comp->delayed_name,
|
in_commasep_string(alg->u.comp->delayed_name,
|
||||||
str.ptr, str.len))
|
str.ptr, str.len) &&
|
||||||
|
!s->userauth_succeeded)
|
||||||
s->pending_compression = TRUE; /* try this later */
|
s->pending_compression = TRUE; /* try this later */
|
||||||
}
|
}
|
||||||
bombout(("Couldn't agree a %s (available: %.*s)",
|
bombout(("Couldn't agree a %s (available: %.*s)",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user