From a02dbb0a9e447bdba3120dca459b30ec02152637 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sun, 24 Feb 2008 14:14:35 +0000 Subject: [PATCH] sin_zero git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1675 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/enet/unix.c | 2 ++ source/enet/win32.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/source/enet/unix.c b/source/enet/unix.c index e279bfeb..132ca1a2 100755 --- a/source/enet/unix.c +++ b/source/enet/unix.c @@ -274,6 +274,8 @@ enet_socket_send (ENetSocket socket, if (address != NULL) { + memset (& sin, 0, sizeof (struct sockaddr_in)); + sin.sin_family = AF_INET; sin.sin_port = ENET_HOST_TO_NET_16 (address -> port); sin.sin_addr.s_addr = address -> host; diff --git a/source/enet/win32.c b/source/enet/win32.c index 27e78777..b8b2aa72 100755 --- a/source/enet/win32.c +++ b/source/enet/win32.c @@ -225,6 +225,8 @@ enet_socket_send (ENetSocket socket, if (address != NULL) { + memset (& sin, 0, sizeof (struct sockaddr_in)); + sin.sin_family = AF_INET; sin.sin_port = ENET_HOST_TO_NET_16 (address -> port); sin.sin_addr.s_addr = address -> host;