diff options
author | dscho <dscho> | 2003-07-28 00:57:52 +0000 |
---|---|---|
committer | dscho <dscho> | 2003-07-28 00:57:52 +0000 |
commit | 9f0a1a3bc16d26420c703c6e6cc0f18bd4f6b81e (patch) | |
tree | 0aa185de6ff17df411ce24001954435a524a970e /sockets.c | |
parent | b9ebdab1f255316ccb9160daa0976d57adfe2675 (diff) | |
download | libtdevnc-9f0a1a3bc16d26420c703c6e6cc0f18bd4f6b81e.tar.gz libtdevnc-9f0a1a3bc16d26420c703c6e6cc0f18bd4f6b81e.zip |
synced with TightVNC and RealVNC
Diffstat (limited to 'sockets.c')
-rw-r--r-- | sockets.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; */ |