This commit is contained in:
lihui 2019-11-27 13:03:34 +08:00
parent f73aaccb57
commit ad979353bd
1 changed files with 2 additions and 0 deletions

View File

@ -151,7 +151,9 @@ char *taosBuildReqHeader(void *param, char type, char *msg) {
} }
pHeader = (STaosHeader *)(msg + sizeof(SMsgNode)); pHeader = (STaosHeader *)(msg + sizeof(SMsgNode));
memset(pHeader, 0, sizeof(STaosHeader));
pHeader->version = 1; pHeader->version = 1;
pHeader->comp = 0;
pHeader->msgType = type; pHeader->msgType = type;
pHeader->spi = 0; pHeader->spi = 0;
pHeader->tcp = 0; pHeader->tcp = 0;