This commit is contained in:
Shengliang Guan 2021-12-29 22:22:34 -08:00
parent 62f620fa65
commit 25f6ffd18d
1 changed files with 1 additions and 1 deletions

View File

@ -440,7 +440,7 @@ static void dndProcessStatusRsp(SDnode *pDnode, SRpcMsg *pMsg) {
}
SStatusRsp *pRsp = pMsg->pCont;
if (pMsg->pCont != NULL) {
if (pMsg->pCont != NULL && pMsg->contLen != 0) {
SDnodeCfg *pCfg = &pRsp->dnodeCfg;
pCfg->dnodeId = htonl(pCfg->dnodeId);
pCfg->clusterId = htobe64(pCfg->clusterId);