fix: protect against nullptr of pMsg in cliHandleExeptImpl

This commit is contained in:
Benguang Zhao 2022-11-16 12:02:46 +08:00
parent 9e8404f60a
commit ab2f4e974c
1 changed files with 1 additions and 1 deletions

View File

@ -451,7 +451,7 @@ void cliHandleExceptImpl(SCliConn* pConn, int32_t code) {
if (pCtx == NULL || pCtx->pSem == NULL) {
if (transMsg.info.ahandle == NULL) {
if (REQUEST_NO_RESP(&pMsg->msg) || pMsg->type == Release) destroyCmsg(pMsg);
if (pMsg == NULL || REQUEST_NO_RESP(&pMsg->msg) || pMsg->type == Release) destroyCmsg(pMsg);
once = true;
continue;
}