fix the issue #419
This commit is contained in:
parent
343df4e2a0
commit
b806c458d5
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue