From a4d82935024762b3c9500c2dafc8986a5d62836a Mon Sep 17 00:00:00 2001 From: Sjors Provoost Date: Fri, 4 Oct 2024 17:52:57 +0200 Subject: [PATCH] init storage to make MSAN happy --- src/common/sockman.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/sockman.cpp b/src/common/sockman.cpp index e20ec3a0b4c33..335eed05cc07a 100644 --- a/src/common/sockman.cpp +++ b/src/common/sockman.cpp @@ -348,7 +348,7 @@ void SockMan::ThreadSocketHandler() std::unique_ptr SockMan::AcceptConnection(const Sock& listen_sock, CService& addr) { - sockaddr_storage storage; + sockaddr_storage storage{}; socklen_t len{sizeof(storage)}; auto sock{listen_sock.Accept(reinterpret_cast(&storage), &len)};