Commit 2f43d5c3 authored by ck's avatar ck
Browse files

SSH: Fix Net7 crash.

Reviewed-by: kh1
parent 112df597
......@@ -108,10 +108,11 @@ bool Ne7sshSftp::handleData (Botan::SecureVector<Botan::byte>& packet)
commBuffer.addVector (sftpBuffer);
mainBuffer.addVector (sftpBuffer);
len = mainBuffer.getInt();
if (mainBuffer.length() < sizeof(uint32)
|| mainBuffer.getInt() > mainBuffer.length())
return true;
if (len > mainBuffer.length()) return true;
else commBuffer.clear();
_cmd = mainBuffer.getByte();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment