Преглед изворни кода

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 година
родитељ
комит
31740ae6b2
1 измењених фајлова са 1 додато и 1 уклоњено
  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())
   {
-    throw Exception(FMTLOAD(FTP_RESPONSE_ERROR, (CommandName, FLastResponse->Text)));
+    throw Exception(FMTLOAD(FTP_RESPONSE_ERROR, (CommandName, ResponseText)));
   }
 
   return LowerCase(Hash);