diff options
author | lukem <lukem@pkgsrc.org> | 2002-10-20 16:32:25 +0000 |
---|---|---|
committer | lukem <lukem@pkgsrc.org> | 2002-10-20 16:32:25 +0000 |
commit | 6271d75135f3f84ca4c4e48c4a675c160606d9ae (patch) | |
tree | 984c458443fabfaf562daefc647f4fe1f1fbc7b2 | |
parent | 0f6263bb2693e2bc1b46420114700bb960683bf3 (diff) | |
download | pkgsrc-6271d75135f3f84ca4c4e48c4a675c160606d9ae.tar.gz |
zero out sockaddr_in before using it in bind() or connect().
Xvnc -localhost and Xvnc -interface ip4addr now works...
-rw-r--r-- | net/tightvnc/distinfo | 4 | ||||
-rw-r--r-- | net/tightvnc/patches/patch-bf | 28 | ||||
-rw-r--r-- | net/tightvnc/patches/patch-bg | 12 |
3 files changed, 43 insertions, 1 deletions
diff --git a/net/tightvnc/distinfo b/net/tightvnc/distinfo index 9f6e859b8a7..491bb219cce 100644 --- a/net/tightvnc/distinfo +++ b/net/tightvnc/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.6 2002/10/20 14:33:53 lukem Exp $ +$NetBSD: distinfo,v 1.7 2002/10/20 16:32:25 lukem Exp $ SHA1 (tightvnc-1.2.6_unixsrc.tar.bz2) = 3ff266a89d12cf49855fbeee3c7c6a8c6c2f07bd Size (tightvnc-1.2.6_unixsrc.tar.bz2) = 1717851 bytes @@ -16,3 +16,5 @@ SHA1 (patch-bb) = 5c16b81e57acfcc0dabce4ee3f429dd9be322d89 SHA1 (patch-bc) = a7f399320d3c06fa5c6ee940a8ede4c6422c7937 SHA1 (patch-bd) = eea7eb3a690212c54667c68b72ecb1df9c667a68 SHA1 (patch-be) = 3f26eaebfa2b6d62123676e4d3a4f43bff5592c0 +SHA1 (patch-bf) = f1aa671b82e56cb7f5dfdd3cda70dbf3c4725474 +SHA1 (patch-bg) = 840931f1097780cea5e469b35622f2d401a4922e diff --git a/net/tightvnc/patches/patch-bf b/net/tightvnc/patches/patch-bf new file mode 100644 index 00000000000..1dedfa8542a --- /dev/null +++ b/net/tightvnc/patches/patch-bf @@ -0,0 +1,28 @@ +$NetBSD: patch-bf,v 1.1 2002/10/20 16:32:25 lukem Exp $ + +--- Xvnc/programs/Xserver/hw/vnc/sockets.c.orig Wed Mar 20 04:59:22 2002 ++++ Xvnc/programs/Xserver/hw/vnc/sockets.c +@@ -491,6 +491,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; +@@ -525,6 +526,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); + +@@ -558,6 +560,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; diff --git a/net/tightvnc/patches/patch-bg b/net/tightvnc/patches/patch-bg new file mode 100644 index 00000000000..7e387b7008d --- /dev/null +++ b/net/tightvnc/patches/patch-bg @@ -0,0 +1,12 @@ +$NetBSD: patch-bg,v 1.1 2002/10/20 16:32:25 lukem Exp $ + +--- Xvnc/programs/Xserver/hw/vnc/init.c.orig Wed Aug 7 22:25:01 2002 ++++ Xvnc/programs/Xserver/hw/vnc/init.c +@@ -733,6 +733,7 @@ static Bool CheckDisplayNumber(int n) + struct sockaddr_in addr; + + sock = socket(AF_INET, SOCK_STREAM, 0); ++ memset(&addr, 0, sizeof(addr)); + addr.sin_family = AF_INET; + addr.sin_addr.s_addr = htonl(INADDR_ANY); + addr.sin_port = htons(6000+n); |