浏览代码

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);