Skip to content

Commit

Permalink
init storage to make MSAN happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjors committed Oct 4, 2024
1 parent 24753b5 commit a4d8293
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/sockman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ void SockMan::ThreadSocketHandler()

std::unique_ptr<Sock> 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<sockaddr*>(&storage), &len)};
Expand Down

0 comments on commit a4d8293

Please sign in to comment.