fix invalid read
This commit is contained in:
parent
ef46c0c545
commit
fe9aebc4fe
|
@ -604,8 +604,7 @@ static void httpModuleDestroy(SHttpModule* http) {
|
||||||
|
|
||||||
static int32_t taosSendHttpReportImplByChan(const char* server, const char* uri, uint16_t port, char* pCont,
|
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 contLen, EHttpCompFlag flag, int64_t chanId) {
|
||||||
int32_t ret = 0;
|
int32_t ret = 0;
|
||||||
terrno = 0;
|
|
||||||
SHttpMsg* msg = httpCreateMsg(server, uri, port, pCont, contLen, flag, chanId);
|
SHttpMsg* msg = httpCreateMsg(server, uri, port, pCont, contLen, flag, chanId);
|
||||||
if (msg == NULL) {
|
if (msg == NULL) {
|
||||||
return terrno;
|
return terrno;
|
||||||
|
|
Loading…
Reference in New Issue