diff --git a/src/client/src/tscServer.c b/src/client/src/tscServer.c index ded04388f41d0f783f2379ebf6b09327de4204fb..45e10ac402df5a271e0f9816604a2c3d6dcba1b2 100644 --- a/src/client/src/tscServer.c +++ b/src/client/src/tscServer.c @@ -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; }