diff options
author | Adam Tkac <atkac@redhat.com> | 2009-10-30 11:13:34 +0000 |
---|---|---|
committer | Adam Tkac <atkac@redhat.com> | 2009-10-30 11:13:34 +0000 |
commit | c9cda3b144b99af172b8b9f8a679fa0203c79ebd (patch) | |
tree | f8b6dde4b9d60e195dc394b7f67db8f9136e0f56 /common/network | |
parent | 934f63cba1bf9646e3fd40b9575930e8c3371853 (diff) | |
download | tigervnc-c9cda3b144b99af172b8b9f8a679fa0203c79ebd.tar.gz tigervnc-c9cda3b144b99af172b8b9f8a679fa0203c79ebd.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/trunk@3917 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/network')
-rw-r--r-- | common/network/TcpSocket.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/network/TcpSocket.cxx b/common/network/TcpSocket.cxx index c95dfcfc..7fd9c6ab 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) |