diff --git a/lib/protocol/SFTP.js b/lib/protocol/SFTP.js
index <HASH>..<HASH> 100644
--- a/lib/protocol/SFTP.js
+++ b/lib/protocol/SFTP.js
@@ -2259,7 +2259,7 @@ function readAttrs(biOpt) {
 function sendOrBuffer(sftp, payload) {
   const ret = tryWritePayload(sftp, payload);
   if (ret !== undefined) {
-    sftp._buffer.push(payload);
+    sftp._buffer.push(ret);
     return false;
   }
   return true;
SFTP: fix incorrect outgoing data buffering