diff options
-rw-r--r-- | source/cSocket.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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;
|