From 06844588c6ad8a1eb929c4142b704347b8f8e5d9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net>
Date: Thu, 8 Feb 2024 18:53:49 -0500
Subject: [PATCH] Only take the early-out data path required to make SSH
 channels work for SSH sessions.

May fix the issues seen updating wiki pages, may not, but is a less
invasive patch either way.
---
 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 3f25f970c0..f7fad07026 100644
--- a/3rdp/build/cl-make-channels-work.patch
+++ b/3rdp/build/cl-make-channels-work.patch
@@ -44,7 +44,7 @@
  		   request, exit */
  		*bytesCopied = bytesToCopy;
 -		if( bytesToCopy >= length )
-+		if( bytesToCopy >= 0 )
++		if( bytesToCopy >= length || sessionInfoPtr->type == CRYPT_SESSION_SSH || sessionInfoPtr->type == CRYPT_SESSION_SSH_SERVER)
  			{
  			ENSURES( sanityCheckSessionRead( sessionInfoPtr ) );
  
-- 
GitLab