summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2009-10-30 11:13:34 +0000
committerAdam Tkac <atkac@redhat.com>2009-10-30 11:13:34 +0000
commit5e65d0918d8fff8d0a2c74cf64c145f43fd6e899 (patch)
treefb870d1f3fcbe6087b54be95102dbd7810a500f9
parent49e1a12fa7e48f37b456a93a570bc13322e48fc5 (diff)
downloadtigervnc-5e65d0918d8fff8d0a2c74cf64c145f43fd6e899.tar.gz
tigervnc-5e65d0918d8fff8d0a2c74cf64c145f43fd6e899.zip
[Bugfix] Pass correct address length to connect(2) call (alan dot coopersmith at sun dot com)
Reference: http://www.mail-archive.com/tigervnc-devel@lists.sourceforge.net/msg00449.html git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/branches/1_0@3917 3789f03b-4d11-0410-bbf8-ca57d06f2519
-rw-r--r--common/network/TcpSocket.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/network/TcpSocket.cxx b/common/network/TcpSocket.cxx
index 7ceff0b0..90431fd2 100644
--- a/common/network/TcpSocket.cxx
+++ b/common/network/TcpSocket.cxx
@@ -188,7 +188,7 @@ TcpSocket::TcpSocket(const char *host, int port)
}
/* Attempt to connect to the remote host */
- while ((result = connect(sock, &sa.u.sa, sizeof(sa))) == -1) {
+ while ((result = connect(sock, &sa.u.sa, salen)) == -1) {
err = errorNumber;
#ifndef WIN32
if (err == EINTR)