From e47524a21ccea5a00b5c7d0e3c0fa73be0cfdd35 Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Thu, 10 Sep 2026 11:44:03 -0400 Subject: [PATCH] correct heap use-after-free in ServerConnectionManager during stopAll(); --- src/common/restapi/http/ServerConnectionManager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/restapi/http/ServerConnectionManager.h b/src/common/restapi/http/ServerConnectionManager.h index fe4e2e9f..214db239 100644 --- a/src/common/restapi/http/ServerConnectionManager.h +++ b/src/common/restapi/http/ServerConnectionManager.h @@ -77,10 +77,10 @@ namespace restapi */ void stopAll() { + std::lock_guard guard(m_lock); for (auto c : m_connections) c->stop(); - std::lock_guard guard(m_lock); m_connections.clear(); }