From fe9aebc4fe420be791db5e62050c367456bd287c Mon Sep 17 00:00:00 2001 From: Yihao Deng Date: Mon, 8 Jul 2024 09:27:42 +0000 Subject: [PATCH] fix invalid read --- source/libs/transport/src/thttp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/libs/transport/src/thttp.c b/source/libs/transport/src/thttp.c index 74325ae5ab..13c63db903 100644 --- a/source/libs/transport/src/thttp.c +++ b/source/libs/transport/src/thttp.c @@ -604,8 +604,7 @@ static void httpModuleDestroy(SHttpModule* http) { static int32_t taosSendHttpReportImplByChan(const char* server, const char* uri, uint16_t port, char* pCont, int32_t contLen, EHttpCompFlag flag, int64_t chanId) { - int32_t ret = 0; - terrno = 0; + int32_t ret = 0; SHttpMsg* msg = httpCreateMsg(server, uri, port, pCont, contLen, flag, chanId); if (msg == NULL) { return terrno;