diff --git a/src/rpc/src/trpc.c b/src/rpc/src/trpc.c index 34d94fcc0993d7f962e6fcd0f3820051c154cacd..d84746817dd524fbb9e7a5b4aea1631ffda1c9ab 100755 --- a/src/rpc/src/trpc.c +++ b/src/rpc/src/trpc.c @@ -232,7 +232,9 @@ char *taosBuildReqHeader(void *param, char type, char *msg) { } pHeader = (STaosHeader *)(msg + sizeof(SMsgNode)); + memset(pHeader, 0, sizeof(STaosHeader)); pHeader->version = 1; + pHeader->comp = 0; pHeader->msgType = type; pHeader->spi = 0; pHeader->tcp = 0;