]> source.dussan.org Git - tigervnc.git/commitdiff
[Bugfix] Pass correct address length to connect(2) call (alan dot coopersmith at...
authorAdam Tkac <atkac@redhat.com>
Fri, 30 Oct 2009 11:13:34 +0000 (11:13 +0000)
committerAdam Tkac <atkac@redhat.com>
Fri, 30 Oct 2009 11:13:34 +0000 (11:13 +0000)
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

common/network/TcpSocket.cxx

index 7ceff0b002514da6618050ead4fd697f81ba015b..90431fd2ed8c65ae610b1e3a6897cd2b69e1ff91 100644 (file)
@@ -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)