From 261adee98a8ffe376aeafb4998e990a04afd6652 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Sun, 13 Dec 2020 22:19:01 +0800 Subject: [PATCH] [TD-2433]: fix the bug that server_status() not working. --- src/client/src/tscLocal.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client/src/tscLocal.c b/src/client/src/tscLocal.c index ab52ef396b..dfc0e3af4e 100644 --- a/src/client/src/tscLocal.c +++ b/src/client/src/tscLocal.c @@ -823,6 +823,9 @@ static int32_t tscProcessClientVer(SSqlObj *pSql) { // TODO add test cases. static int32_t checkForOnlineNode(SSqlObj* pSql) { int32_t* data = pSql->res.length; + if (data == NULL) { + return TSDB_CODE_SUCCESS; + } int32_t total = data[0]; int32_t online = data[1]; -- GitLab