Skip to content

Commit d6874ed

Browse files
committed
fix:download Incorrect calculation of HASH
1 parent 9cdf7b6 commit d6874ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

XEngine_Source/XEngine_StorageApp/StorageApp_Download.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ XHTHREAD CALLBACK XEngine_Download_SendThread(LPVOID lParam)
7979
memset(&st_StorageInfo, '\0', sizeof(SESSION_STORAGEINFO));
8080

8181
OPenSsl_Api_Digest(st_StorageInfo.tszFileDir, tszHashKey, NULL, TRUE, st_ServiceCfg.st_XStorage.nHashMode);
82-
BaseLib_OperatorString_StrToHex((char*)tszHashStr, 20, tszHashStr);
82+
BaseLib_OperatorString_StrToHex((char*)tszHashKey, 20, tszHashStr);
8383
Session_DLStroage_GetInfo(nThreadPos, i, &st_StorageInfo);
8484

8585
XStorageProtocol_Proxy_PacketUPDown(st_StorageInfo.tszFileDir, st_StorageInfo.tszClientAddr, st_StorageInfo.ullRWCount, tszProxyStr, &nPLen, tszHashStr);

0 commit comments

Comments
 (0)