| 1716 | } |
| 1717 | |
| 1718 | void CUpDownClient::ProcessAICHFileHash(CMemFile* data, const CPartFile* file){ |
| 1719 | CPartFile* pPartFile; |
| 1720 | if (file == NULL){ |
| 1721 | pPartFile = theApp->downloadqueue->GetFileByID(data->ReadHash()); |
| 1722 | } else { |
| 1723 | pPartFile = const_cast<CPartFile*>(file); |
| 1724 | } |
| 1725 | CAICHHash ahMasterHash(data); |
| 1726 | |
| 1727 | if(pPartFile != NULL && pPartFile == GetRequestFile()){ |
| 1728 | SetReqFileAICHHash(new CAICHHash(ahMasterHash)); |
| 1729 | pPartFile->GetAICHHashset()->UntrustedHashReceived(ahMasterHash, GetConnectIP()); |
| 1730 | } else { |
| 1731 | AddDebugLogLineN( logAICHTransfer, "ProcessAICHFileHash(): PartFile not found or Partfile differs from requested file, " + GetClientFullInfo() ); |
| 1732 | } |
| 1733 | } |
| 1734 | // File_checked_for_headers |
no test coverage detected