fix udfd crash
This commit is contained in:
parent
bf48419dff
commit
0b1cef9b51
|
@ -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) {
|
||||||
}
|
}
|
||||||
|
|
||||||
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;
|
||||||
|
|
Loading…
Reference in New Issue