diff options
Diffstat (limited to 'src/network/network.cpp')
-rw-r--r-- | src/network/network.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp index e88b7a1f8..ebd10980d 100644 --- a/src/network/network.cpp +++ b/src/network/network.cpp @@ -480,6 +480,7 @@ static void NetworkAcceptClients() assert(_listensocket != INVALID_SOCKET); for (;;) { + memset(&sin, 0, sizeof(sin)); socklen_t sin_len = sizeof(sin); SOCKET s = accept(_listensocket, (struct sockaddr*)&sin, &sin_len); if (s == INVALID_SOCKET) return; |