summaryrefslogtreecommitdiffstats
path: root/sockets.c
diff options
context:
space:
mode:
authordscho <dscho>2003-07-28 00:57:52 +0000
committerdscho <dscho>2003-07-28 00:57:52 +0000
commit9f0a1a3bc16d26420c703c6e6cc0f18bd4f6b81e (patch)
tree0aa185de6ff17df411ce24001954435a524a970e /sockets.c
parentb9ebdab1f255316ccb9160daa0976d57adfe2675 (diff)
downloadlibtdevnc-9f0a1a3bc16d26420c703c6e6cc0f18bd4f6b81e.tar.gz
libtdevnc-9f0a1a3bc16d26420c703c6e6cc0f18bd4f6b81e.zip
synced with TightVNC and RealVNC
Diffstat (limited to 'sockets.c')
-rw-r--r--sockets.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sockets.c b/sockets.c
index 3095ec0..c1720a5 100644
--- a/sockets.c
+++ b/sockets.c
@@ -521,6 +521,7 @@ ListenOnTCPPort(port)
int sock;
int one = 1;
+ memset(&addr, 0, sizeof(addr));
addr.sin_family = AF_INET;
addr.sin_port = htons(port);
/* addr.sin_addr.s_addr = interface.s_addr; */
@@ -555,6 +556,7 @@ ConnectToTcpAddr(host, port)
int sock;
struct sockaddr_in addr;
+ memset(&addr, 0, sizeof(addr));
addr.sin_family = AF_INET;
addr.sin_port = htons(port);
@@ -587,6 +589,7 @@ ListenOnUDPPort(port)
int sock;
int one = 1;
+ memset(&addr, 0, sizeof(addr));
addr.sin_family = AF_INET;
addr.sin_port = htons(port);
/* addr.sin_addr.s_addr = interface.s_addr; */