From ee695957205fceb7990d123f6cccf7de3e58c12c Mon Sep 17 00:00:00 2001 From: yangwei Date: Tue, 6 Aug 2024 15:32:24 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(packet=20init):=20init=20pac?= =?UTF-8?q?ket=20need=20free=20as=200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stellar/stellar_core.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stellar/stellar_core.cpp b/src/stellar/stellar_core.cpp index 465998a..7af49d9 100644 --- a/src/stellar/stellar_core.cpp +++ b/src/stellar/stellar_core.cpp @@ -162,6 +162,8 @@ static void *work_thread(void *arg) uint16_t thr_idx = thread->idx; __thread_id = thr_idx; + memset(packets, 0, sizeof(packets)); + snprintf(thd_name, sizeof(thd_name), "stellar:%d", thr_idx); prctl(PR_SET_NAME, (unsigned long long)thd_name, NULL, NULL, NULL);