From 9d12273a9a13484a9b3f4ec9532674d67112a8d9 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Sat, 19 Mar 2022 14:35:24 +0800 Subject: [PATCH] merge 3.0 --- source/libs/transport/src/transCli.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/libs/transport/src/transCli.c b/source/libs/transport/src/transCli.c index 126b6cb91f..842b5a1b4b 100644 --- a/source/libs/transport/src/transCli.c +++ b/source/libs/transport/src/transCli.c @@ -844,7 +844,10 @@ void transSendRequest(void* shandle, const char* ip, uint32_t port, STransMsg* p pCtx->ip = strdup(ip); pCtx->port = port; pCtx->hThrdIdx = index; - pCtx->appCtx = *ctx; + + if (ctx != NULL) { + pCtx->appCtx = *ctx; + } assert(pTransInst->connType == TAOS_CONN_CLIENT); // atomic or not