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:
Simon Tatham 2018-06-16 14:44:10 +01:00
Родитель d4304f1b7b
Коммит 20e8fdece3
1 изменённых файлов: 2 добавлений и 1 удалений

3
ssh.c
Просмотреть файл

@ -5731,7 +5731,8 @@ static void do_ssh2_transport(void *vctx)
}
if ((i == KEXLIST_CSCOMP || i == KEXLIST_SCCOMP) &&
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 */
}
bombout(("Couldn't agree a %s (available: %.*s)",