diff --git a/src/rpc/src/trpc.c b/src/rpc/src/trpc.c index 5403caac9db45129662291c9023d18ba2865c010..3aa50cf168de8feabfe35f8964a59bc8e6995086 100644 --- a/src/rpc/src/trpc.c +++ b/src/rpc/src/trpc.c @@ -1075,6 +1075,7 @@ void *taosProcessDataFromPeer(char *data, int dataLen, uint32_t ip, short port, // parsing error if (pHeader->msgType & 1) { + memset(pReply, 0, sizeof(pReply)); msgLen = taosBuildErrorMsgToPeer(data, code, pReply); (*taosSendData[pServer->type])(ip, port, pReply, msgLen, chandle); tTrace("%s cid:%d sid:%d id:%s, %s is sent with error code:%u pConn:%p", pServer->label, chann, sid,