From 4071b6f89819f72f3f0dd573e9aa1da2ec1cc576 Mon Sep 17 00:00:00 2001 From: lihui Date: Thu, 26 Mar 2020 17:01:58 +0800 Subject: [PATCH] [TD-54] --- src/system/detail/src/mgmtShell.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/system/detail/src/mgmtShell.c b/src/system/detail/src/mgmtShell.c index e26fee0f38..dc6c14576f 100644 --- a/src/system/detail/src/mgmtShell.c +++ b/src/system/detail/src/mgmtShell.c @@ -1328,7 +1328,9 @@ _rsp: if (code == 0) { pConnectRsp = (SConnectRsp *)pRsp->more; - sprintf(pConnectRsp->acctId, "%x", pConn->pAcct->acctId); + if (NULL != pConn->pAcct) { + sprintf(pConnectRsp->acctId, "%x", pConn->pAcct->acctId); + } strcpy(pConnectRsp->version, version); pConnectRsp->writeAuth = pConn->writeAuth; pConnectRsp->superAuth = pConn->superAuth; -- GitLab