From 1e1c66f5c48f558e14a4ab191a013689a3d7e5a2 Mon Sep 17 00:00:00 2001 From: ck <qt-info@nokia.com> Date: Tue, 1 Jun 2010 12:32:48 +0200 Subject: [PATCH] SSH: Fix sequence number wrap-around bug in Net7. --- src/libs/3rdparty/net7ssh/src/ne7ssh_transport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/3rdparty/net7ssh/src/ne7ssh_transport.cpp b/src/libs/3rdparty/net7ssh/src/ne7ssh_transport.cpp index 0155e086b4c..5ad1b0dc7c6 100644 --- a/src/libs/3rdparty/net7ssh/src/ne7ssh_transport.cpp +++ b/src/libs/3rdparty/net7ssh/src/ne7ssh_transport.cpp @@ -389,7 +389,7 @@ short ne7ssh_transport::waitForPacket (Botan::byte cmd, bool bufferOnly) }*/ } - if (rSeq == MAX_SEQUENCE) seq = 0; + if (rSeq == MAX_SEQUENCE) rSeq = 0; else rSeq++; _cmd = *(decrypted.begin() + 5); -- GitLab