Fixed initialization of sockaddr_in.
This commit is contained in:
parent
6d111904d4
commit
d508ccfe2b
@ -250,7 +250,7 @@ Task<StreamResult<std::unique_ptr<Socket>>> TCPServerSocket::c_waitForConnection
|
||||
{
|
||||
while (isListening())
|
||||
{
|
||||
sockaddr_in client = {0};
|
||||
sockaddr_in client = {};
|
||||
socklen_t LENGTH = sizeof(sockaddr_in);
|
||||
const int newSocket = accept(handle_, reinterpret_cast<sockaddr*>(&client), &LENGTH);
|
||||
if (newSocket < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user