提交 b806c458 编写于 作者: S slguan

fix the issue #419

上级 343df4e2
......@@ -169,7 +169,7 @@ char *taosBuildReqHeader(void *param, char type, char *msg) {
pHeader->sourceId = pConn->ownId;
pHeader->destId = pConn->peerId;
pHeader->port = 0;
pHeader->uid = (uint32_t)pConn;
pHeader->uid = (uint32_t)pConn + (uint32_t)getpid();
memcpy(pHeader->meterId, pConn->meterId, tListLen(pHeader->meterId));
......@@ -200,7 +200,7 @@ char *taosBuildReqMsgWithSize(void *param, char type, int size) {
pHeader->sourceId = pConn->ownId;
pHeader->destId = pConn->peerId;
pHeader->uid = (uint32_t)pConn;
pHeader->uid = (uint32_t)pConn + (uint32_t)getpid();
memcpy(pHeader->meterId, pConn->meterId, tListLen(pHeader->meterId));
return (char *)pHeader->content;
......
......@@ -88,6 +88,8 @@ static uint8_t PADDING[64] = {0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x
mdContext. All fields are set to zero.
*/
void MD5Init(MD5_CTX *mdContext) {
memset(mdContext, 0, sizeof(MD5_CTX));
mdContext->i[0] = mdContext->i[1] = (uint32_t)0;
/* Load magic initialization constants.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册