From 82e893ef22b5d8fd1b6158c5122e31eebbb1fce9 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Sat, 2 Dec 2017 01:03:29 +0100 Subject: 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 --- nxcomp/src/Loop.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nxcomp') 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() -- cgit v1.2.3