mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-06 07:10:53 +03:00
* Fix for issue #910: Bad packet received by server when hearbeat is enabled * Address re-keying case too --------- Co-authored-by: Jeroen van Erp <jeroen@hierynomus.com>
This commit is contained in:
@@ -420,9 +420,9 @@ public final class TransportImpl
|
||||
try {
|
||||
|
||||
if (kexer.isKexOngoing()) {
|
||||
// Only transport layer packets (1 to 49) allowed except SERVICE_REQUEST
|
||||
// Only transport layer packets (1 to 49) allowed except SERVICE_REQUEST and IGNORE
|
||||
final Message m = Message.fromByte(payload.array()[payload.rpos()]);
|
||||
if (!m.in(1, 49) || m == Message.SERVICE_REQUEST) {
|
||||
if (!m.in(1, 49) || m == Message.SERVICE_REQUEST || m == Message.IGNORE) {
|
||||
assert m != Message.KEXINIT;
|
||||
kexer.waitForDone();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user