From 10b6be348cf1edfc04ff3e45244c46a2eeb4758d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Thu, 22 Feb 2024 22:04:59 -0500 Subject: [PATCH] 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. --- 3rdp/build/cl-make-channels-work.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3rdp/build/cl-make-channels-work.patch b/3rdp/build/cl-make-channels-work.patch index f2b0b298e6..c30c7c749e 100644 --- a/3rdp/build/cl-make-channels-work.patch +++ b/3rdp/build/cl-make-channels-work.patch @@ -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; + } -- GitLab