From aab1ec632c304d8d9bb3615a90cfb3349799b52a Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Tue, 15 Nov 2022 22:29:59 +0800 Subject: [PATCH] fix: heap-use-after-free in syncNodeEqPingTimer --- source/libs/sync/src/syncMain.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/libs/sync/src/syncMain.c b/source/libs/sync/src/syncMain.c index c623628978..514160235f 100644 --- a/source/libs/sync/src/syncMain.c +++ b/source/libs/sync/src/syncMain.c @@ -1842,7 +1842,7 @@ static void syncNodeEqPingTimer(void* param, void* tmrId) { return; } - sTrace(pNode, "enqueue ping msg"); + sTrace("enqueue ping msg"); code = pNode->syncEqMsg(pNode->msgcb, &rpcMsg); if (code != 0) { sError("failed to sync enqueue ping msg since %s", terrstr()); @@ -1870,7 +1870,7 @@ static void syncNodeEqElectTimer(void* param, void* tmrId) { } SyncTimeout* pTimeout = rpcMsg.pCont; - sTrace(pNode, "enqueue elect msg lc:%" PRId64, pTimeout->logicClock); + sTrace("enqueue elect msg lc:%" PRId64, pTimeout->logicClock); code = pNode->syncEqMsg(pNode->msgcb, &rpcMsg); if (code != 0) { @@ -1894,7 +1894,7 @@ static void syncNodeEqHeartbeatTimer(void* param, void* tmrId) { return; } - sTrace(pNode, "enqueue heartbeat timer"); + sTrace("enqueue heartbeat timer"); code = pNode->syncEqMsg(pNode->msgcb, &rpcMsg); if (code != 0) { sError("failed to enqueue heartbeat msg since %s", terrstr()); -- GitLab