diff --git a/source/libs/transport/src/transCli.c b/source/libs/transport/src/transCli.c index cc282bd9f0..bdf103887c 100644 --- a/source/libs/transport/src/transCli.c +++ b/source/libs/transport/src/transCli.c @@ -381,7 +381,7 @@ void cliHandleResp(SCliConn* conn) { return; } - if (pMsg && pMsg->type != Release) { + if (pMsg == NULL || (pMsg && pMsg->type != Release)) { if (cliAppCb(conn, &transMsg, pMsg) != 0) { return; } @@ -442,7 +442,7 @@ void cliHandleExceptImpl(SCliConn* pConn, int32_t code) { continue; } } - if (pMsg && pMsg->type != Release) { + if (pMsg == NULL || (pMsg && pMsg->type != Release)) { if (cliAppCb(pConn, &transMsg, pMsg) != 0) { return; }