From a01235cb41b343f000cc7d5ceae822de8e3a37af Mon Sep 17 00:00:00 2001 From: Bomin Zhang Date: Sat, 26 Dec 2020 06:46:15 +0000 Subject: [PATCH] [TD-2560]: client crash when execute 'show tables like' #4691 --- src/client/src/tscServer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/src/tscServer.c b/src/client/src/tscServer.c index ded04388f4..45e10ac402 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; }