diff --git a/src/rpc/src/trpc.c b/src/rpc/src/trpc.c index 5071376bcd22c2afe29411b4a1ba096f520ef948..db1ca33841c502f2b983501880412d79bf02e175 100755 --- a/src/rpc/src/trpc.c +++ b/src/rpc/src/trpc.c @@ -328,6 +328,10 @@ int taosSendSimpleRsp(void *thandle, char rsptype, char code) { } pStart = taosBuildRspMsgWithSize(thandle, rsptype, 32); + if (pStart == NULL) { + tError("build rsp msg error, return null prt"); + return -1; + } pMsg = pStart; *pMsg = code;