From 00ea7d12c1708929fe8aedec3914221fb2190553 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 3 Apr 2012 13:37:00 +0000 Subject: Attempted a fix for cSocket's Bind() call on MacOS-based systems (initializing the whole sockaddr_in structure with zeroes first) git-svn-id: http://mc-server.googlecode.com/svn/trunk@446 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cSocket.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/cSocket.cpp b/source/cSocket.cpp index e42033578..09291f2a9 100644 --- a/source/cSocket.cpp +++ b/source/cSocket.cpp @@ -211,6 +211,7 @@ unsigned long cSocket::INTERNET_ADDRESS_LOCALHOST(void) int cSocket::Bind(SockAddr_In& a_Address) { sockaddr_in local; + memset(&local, 0, sizeof(local)); local.sin_family = a_Address.Family; local.sin_addr.s_addr = a_Address.Address; -- cgit v1.2.3