Răsfoiți Sursa

Return empty byte array when EOF status response is received.

drieseng 9 ani în urmă
părinte
comite
887926f172
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      src/Renci.SshNet/Sftp/SftpSession.cs

+ 1 - 0
src/Renci.SshNet/Sftp/SftpSession.cs

@@ -344,6 +344,7 @@ namespace Renci.SshNet.Sftp
                             {
                                 exception = GetSftpException(response);
                             }
+                            data = Array<byte>.Empty;
                             wait.Set();
                         });