From b473ba8eccc9bfe77cd3d4d7eff4f7a59cd61f7d Mon Sep 17 00:00:00 2001 From: lihui Date: Thu, 12 Dec 2019 16:00:27 +0800 Subject: [PATCH] [check return value] --- src/rpc/src/trpc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rpc/src/trpc.c b/src/rpc/src/trpc.c index 5071376bcd..db1ca33841 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; -- GitLab