aboutsummaryrefslogtreecommitdiff
path: root/nxcomp/src
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2017-12-02 01:03:29 +0100
committerUlrich Sibiller <uli42@gmx.de>2017-12-02 01:03:29 +0100
commit82e893ef22b5d8fd1b6158c5122e31eebbb1fce9 (patch)
tree6dd20722c2fc1ef1f7fed0e575ea248fe3ba63d5 /nxcomp/src
parent7f777e01e3bb8780ba91e70171a0aae78a95692e (diff)
downloadnx-libs-82e893ef22b5d8fd1b6158c5122e31eebbb1fce9.tar.gz
nx-libs-82e893ef22b5d8fd1b6158c5122e31eebbb1fce9.tar.bz2
nx-libs-82e893ef22b5d8fd1b6158c5122e31eebbb1fce9.zip
nxcomp: Fix setting of global tcpFD
This corrects a flaw that stayed undetected for 2.5 years, introduced via c5a2cf82f6baf7a9e64ec2328a5bac0dfee453ef Fixes ArcticaProject/nx-libs#573
Diffstat (limited to 'nxcomp/src')
-rw-r--r--nxcomp/src/Loop.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/nxcomp/src/Loop.cpp b/nxcomp/src/Loop.cpp
index 197167380..2930baf92 100644
--- a/nxcomp/src/Loop.cpp
+++ b/nxcomp/src/Loop.cpp
@@ -3741,7 +3741,8 @@ int SetupTcpSocket()
// Open TCP socket emulating local display.
//
- return ListenConnectionTCP((loopbackBind ? "localhost" : "*"), X_TCP_PORT + proxyPort, "X11");
+ tcpFD = ListenConnectionTCP((loopbackBind ? "localhost" : "*"), X_TCP_PORT + proxyPort, "X11");
+ return 1;
}
int SetupUnixSocket()