From 3856e3fd15bdc845dce441b52aabbe4c69f8d0cc Mon Sep 17 00:00:00 2001 From: eihrul Date: Sun, 24 Feb 2008 14:19:47 +0000 Subject: zero out sin_zero --- unix.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'unix.c') diff --git a/unix.c b/unix.c index e279bfe..132ca1a 100644 --- a/unix.c +++ b/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; -- cgit v1.2.3