diff --git a/src/system/detail/src/mgmtShell.c b/src/system/detail/src/mgmtShell.c index e26fee0f38b69c8a092cdab523d61328a8f1329a..dc6c14576f935ebce175bed80186bafc17a802b3 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;