提交 b806c458 编写于 作者: S slguan

fix the issue #419

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