Skip to content
Snippets Groups Projects
Commit 23326c3b 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 be3a4bf8
No related branches found
No related tags found
Loading
......@@ -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