diff options
author | eihrul <eihrul> | 2008-02-24 14:19:47 +0000 |
---|---|---|
committer | eihrul <eihrul> | 2008-02-24 14:19:47 +0000 |
commit | 3856e3fd15bdc845dce441b52aabbe4c69f8d0cc (patch) | |
tree | a7cfe92128a925b0be1be334b56b1e191dd54a07 | |
parent | 356ff9bc7fa933a7ab7d483756ec308c0eac49ec (diff) | |
download | enet-3856e3fd15bdc845dce441b52aabbe4c69f8d0cc.tar.gz enet-3856e3fd15bdc845dce441b52aabbe4c69f8d0cc.zip |
zero out sin_zero
-rw-r--r-- | unix.c | 2 | ||||
-rw-r--r-- | win32.c | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -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; @@ -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; |