未验证 提交 5adf21b6 编写于 作者: S Shengliang Guan 提交者: GitHub

Merge pull request #18850 from taosdata/fix/udfdCrash

fix: fix udfd crash
...@@ -285,6 +285,7 @@ static void cliReleaseUnfinishedMsg(SCliConn* conn) { ...@@ -285,6 +285,7 @@ static void cliReleaseUnfinishedMsg(SCliConn* conn) {
} }
destroyCmsg(msg); destroyCmsg(msg);
} }
memset(&conn->ctx, 0, sizeof(conn->ctx));
} }
bool cliMaySendCachedMsg(SCliConn* conn) { bool cliMaySendCachedMsg(SCliConn* conn) {
if (!transQueueEmpty(&conn->cliMsgs)) { if (!transQueueEmpty(&conn->cliMsgs)) {
......
...@@ -282,6 +282,9 @@ void transCtxCleanup(STransCtx* ctx) { ...@@ -282,6 +282,9 @@ void transCtxCleanup(STransCtx* ctx) {
} }
void transCtxMerge(STransCtx* dst, STransCtx* src) { void transCtxMerge(STransCtx* dst, STransCtx* src) {
if (src->args == NULL || src->freeFunc == NULL) {
return;
}
if (dst->args == NULL) { if (dst->args == NULL) {
dst->args = src->args; dst->args = src->args;
dst->brokenVal = src->brokenVal; dst->brokenVal = src->brokenVal;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册