[TD-2560]<fix>: client crash when execute 'show tables like'

#4691
This commit is contained in:
Bomin Zhang 2020-12-26 06:46:15 +00:00
parent 960e8c0394
commit a01235cb41
1 changed files with 1 additions and 1 deletions

View File

@ -1247,7 +1247,7 @@ int32_t tscBuildShowMsg(SSqlObj *pSql, SSqlInfo *pInfo) {
pShowMsg->payloadLen = htons(pEpAddr->n);
}
pCmd->payloadLen = sizeof(SShowMsg) + pShowMsg->payloadLen;
pCmd->payloadLen = sizeof(SShowMsg) + htons(pShowMsg->payloadLen);
return TSDB_CODE_SUCCESS;
}