Skip to content
Snippets Groups Projects
Commit 0c31b67e authored by ck's avatar ck
Browse files

SSH: Fix Net7 bug.

parent adad842b
No related branches found
No related tags found
No related merge requests found
...@@ -166,15 +166,14 @@ bool Ne7sshSftp::receiveUntil (short _cmd, uint32 timeSec) ...@@ -166,15 +166,14 @@ bool Ne7sshSftp::receiveUntil (short _cmd, uint32 timeSec)
SecureVector<Botan::byte> packet; SecureVector<Botan::byte> packet;
uint32 cutoff = timeSec * 1000000, timeout = 0; uint32 cutoff = timeSec * 1000000, timeout = 0;
uint32 prevSize = 0; uint32 prevSize = 0;
bool status;
this->sftpCmd = 0; this->sftpCmd = 0;
commBuffer.clear(); commBuffer.clear();
while (true) while (true)
{ {
status = _transport->waitForPacket (0, false); const short status = _transport->waitForPacket (0, false);
if (status) if (status > 0)
{ {
_transport->getPacket (packet); _transport->getPacket (packet);
if (!handleReceived (packet)) return false; if (!handleReceived (packet)) return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment