Browse Source

Bug 2110: Automatically reconnect when FTP server fails to open data connection with 426 code, if it previously worked

https://winscp.net/tracker/2110

Source commit: 3d005504b54d9b6f9dfa9799978827d7052029f6
Martin Prikryl 3 years ago
parent
commit
2093433737
1 changed files with 1 additions and 1 deletions
  1. 1 1
      source/core/FtpFileSystem.cpp

+ 1 - 1
source/core/FtpFileSystem.cpp

@@ -3155,7 +3155,7 @@ UnicodeString __fastcall TFTPFileSystem::GotReply(unsigned int Reply, unsigned i
         }
 
         bool RetryTransfer = false;
-        if (FLastCode == 425)
+        if ((FLastCode == 425) || (FLastCode == 426))
         {
           if (FAnyTransferSucceeded)
           {