Skip to content
Snippets Groups Projects
Commit 10b6be34 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Instead of keying on the packet being received, key on buffer empty.

This should work exactly the same, but is more correct.  It's possible
that in the future, packet data could be added to the buffer after
receiveBufPos, and we could know that no more is required.
parent 1921f014
Branches
Tags
1 merge request!455Update branch with changes from master
......@@ -23,7 +23,7 @@
+ if (*bytesCopied > 0) {
+ if (sessionInfoPtr->type == CRYPT_SESSION_SSH || sessionInfoPtr->type == CRYPT_SESSION_SSH_SERVER)
+ {
+ if (sessionInfoPtr->pendingPacketLength <= 0)
+ if (sessionInfoPtr->receiveBufPos <= 0)
+ {
+ status = OK_SPECIAL;
+ }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment