fix: fix compile error

This commit is contained in:
yihaoDeng 2022-09-11 22:11:44 +08:00
parent 308bfe7fb8
commit 0a337e82e3
1 changed files with 2 additions and 2 deletions

View File

@ -381,7 +381,7 @@ void cliHandleResp(SCliConn* conn) {
return; return;
} }
if (pMsg && pMsg->type != Release) { if (pMsg == NULL || (pMsg && pMsg->type != Release)) {
if (cliAppCb(conn, &transMsg, pMsg) != 0) { if (cliAppCb(conn, &transMsg, pMsg) != 0) {
return; return;
} }
@ -442,7 +442,7 @@ void cliHandleExceptImpl(SCliConn* pConn, int32_t code) {
continue; continue;
} }
} }
if (pMsg && pMsg->type != Release) { if (pMsg == NULL || (pMsg && pMsg->type != Release)) {
if (cliAppCb(pConn, &transMsg, pMsg) != 0) { if (cliAppCb(pConn, &transMsg, pMsg) != 0) {
return; return;
} }