From 0a337e82e30d5ae571e054f588a98db30f853767 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Sun, 11 Sep 2022 22:11:44 +0800 Subject: [PATCH] fix: fix compile error --- source/libs/transport/src/transCli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }