Browse Source

Bug fix: Failure when parsing FTP checksum response misses the actual response

Not really tests, but seem like an obvious mistake from Bug 2023 (37c0decb)

Source commit: f763ad23e896b619ddb910311cbbdb9d40a1b285
Martin Prikryl 2 years ago
parent
commit
31740ae6b2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      source/core/FtpFileSystem.cpp

+ 1 - 1
source/core/FtpFileSystem.cpp

@@ -1210,7 +1210,7 @@ UnicodeString __fastcall TFTPFileSystem::DoCalculateFileChecksum(const UnicodeSt
 
 
   if (Hash.IsEmpty())
   if (Hash.IsEmpty())
   {
   {
-    throw Exception(FMTLOAD(FTP_RESPONSE_ERROR, (CommandName, FLastResponse->Text)));
+    throw Exception(FMTLOAD(FTP_RESPONSE_ERROR, (CommandName, ResponseText)));
   }
   }
 
 
   return LowerCase(Hash);
   return LowerCase(Hash);